diff options
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c index 049c3ef..fe257d0 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -164,8 +164,8 @@ static int fetch_main(void *ctx, int argc, char **argv) for (j = 0; j < dep.name->pkgs->num; j++) if (pkg == NULL || - apk_version_compare(APK_BLOB_STR(dep.name->pkgs->item[j]->version), - APK_BLOB_STR(pkg->version)) + apk_pkg_version_compare(dep.name->pkgs->item[j], + pkg) == APK_VERSION_GREATER) pkg = dep.name->pkgs->item[j]; |