diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-20 12:38:07 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-20 12:38:07 +0200 |
commit | 4bbed2d648fcb98c613f88c1ced418e771407f84 (patch) | |
tree | 954e208e3ca77098483c15cf94de2a55ffd8d7a5 /src/fetch.c | |
parent | cb074581f0d65bc43188d3552dd72c405c53e5d9 (diff) | |
download | apk-tools-4bbed2d648fcb98c613f88c1ced418e771407f84.tar.gz apk-tools-4bbed2d648fcb98c613f88c1ced418e771407f84.tar.bz2 apk-tools-4bbed2d648fcb98c613f88c1ced418e771407f84.tar.xz apk-tools-4bbed2d648fcb98c613f88c1ced418e771407f84.zip |
ver: only compare the given packages, show version
make apk_version_compare() take strings rather than blobs
add apk_pkgversion_compare(), a wrapper that takes packages
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]; |