diff options
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fetch.c b/src/fetch.c index a9f2031..325249d 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -202,12 +202,12 @@ static int fetch_main(void *ctx, struct apk_database *db, int argc, char **argv) } else { struct apk_package *pkg = NULL; - for (j = 0; j < dep.name->pkgs->num; j++) + for (j = 0; j < dep.name->providers->num; j++) if (pkg == NULL || - apk_pkg_version_compare(dep.name->pkgs->item[j], + apk_pkg_version_compare(dep.name->providers->item[j].pkg, pkg) == APK_VERSION_GREATER) - pkg = dep.name->pkgs->item[j]; + pkg = dep.name->providers->item[j].pkg; if (pkg == NULL) { apk_message("Unable to get '%s'", dep.name->name); |