From 4bbed2d648fcb98c613f88c1ced418e771407f84 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 20 Jun 2009 12:38:07 +0200 Subject: 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 --- src/apk_package.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/apk_package.h') diff --git a/src/apk_package.h b/src/apk_package.h index b8206c1..a6e4784 100644 --- a/src/apk_package.h +++ b/src/apk_package.h @@ -94,6 +94,8 @@ int apk_pkg_run_script(struct apk_package *pkg, int root_fd, struct apk_package *apk_pkg_parse_index_entry(struct apk_database *db, apk_blob_t entry); int apk_pkg_write_index_entry(struct apk_package *pkg, struct apk_ostream *os); +int apk_pkg_version_compare(struct apk_package *a, struct apk_package *b); + struct apk_dependency apk_dep_from_str(struct apk_database *db, char *str); struct apk_dependency apk_dep_from_pkg(struct apk_database *db, -- cgit v1.2.3