summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-20 12:38:07 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-20 12:38:07 +0200
commit4bbed2d648fcb98c613f88c1ced418e771407f84 (patch)
tree954e208e3ca77098483c15cf94de2a55ffd8d7a5 /src/package.c
parentcb074581f0d65bc43188d3552dd72c405c53e5d9 (diff)
downloadapk-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/package.c')
-rw-r--r--src/package.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/package.c b/src/package.c
index 0cad132..585644e 100644
--- a/src/package.c
+++ b/src/package.c
@@ -664,6 +664,11 @@ int apk_pkg_write_index_entry(struct apk_package *info,
return n;
}
+int apk_pkg_version_compare(struct apk_package *a, struct apk_package *b)
+{
+ return apk_version_compare(a->version, b->version);
+}
+
struct apk_dependency apk_dep_from_str(struct apk_database *db,
char *str)
{