summaryrefslogtreecommitdiff
path: root/src/apk_package.h
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/apk_package.h
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/apk_package.h')
-rw-r--r--src/apk_package.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index 65d20ad..3e50979 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -56,10 +56,6 @@ struct apk_sign_ctx {
} signature;
};
-#define APK_DEPMASK_REQUIRE (APK_VERSION_EQUAL|APK_VERSION_LESS|\
- APK_VERSION_GREATER)
-#define APK_DEPMASK_CONFLICT (0)
-
struct apk_dependency {
struct apk_name *name;
apk_blob_t *version;
@@ -114,6 +110,7 @@ int apk_dep_from_blob(struct apk_dependency *dep, struct apk_database *db,
apk_blob_t blob);
void apk_dep_from_pkg(struct apk_dependency *dep, struct apk_database *db,
struct apk_package *pkg);
+int apk_dep_is_satisfied(struct apk_dependency *dep, struct apk_package *pkg);
void apk_blob_push_dep(apk_blob_t *to, struct apk_dependency *dep);
int apk_deps_add(struct apk_dependency_array **depends,