summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-01-01 16:58:58 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-01-01 16:58:58 +0200
commit1c7e8d2617d93daac1fe0c38c0279435331bb152 (patch)
treecb801169ccccebad45293071694f877c73447823 /src/search.c
parent65826761508d1b9effd62e7665d6db23b6fabe2f (diff)
downloadapk-tools-1c7e8d2617d93daac1fe0c38c0279435331bb152.tar.gz
apk-tools-1c7e8d2617d93daac1fe0c38c0279435331bb152.tar.bz2
apk-tools-1c7e8d2617d93daac1fe0c38c0279435331bb152.tar.xz
apk-tools-1c7e8d2617d93daac1fe0c38c0279435331bb152.zip
pkg: dependencies to specific package checksum
When package is installed from commandline, we should always install that specific instance of package (never favor repository version if it has difference identity). Otherwise we might not always end-up installing the .apk given on command line. The dependency is now against specific checksum identity (marked with >< dependency comparison). Fixes #492.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index cb8c44d..3973552 100644
--- a/src/search.c
+++ b/src/search.c
@@ -53,8 +53,7 @@ static int print_rdepends(struct apk_package *pkg)
for (k = 0; k < pkg0->depends->num; k++) {
dep = &pkg0->depends->item[k];
if (name == dep->name &&
- (apk_version_compare_blob(*pkg->version, *dep->version)
- & dep->result_mask)) {
+ apk_dep_is_satisfied(dep, pkg)) {
printf(" " PKG_VER_FMT,
PKG_VER_PRINTF(pkg0));
}