summaryrefslogtreecommitdiff
path: root/src/apk_package.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-10-19 11:38:23 -0400
committerTimo Teräs <timo.teras@iki.fi>2011-10-19 11:38:23 -0400
commit89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4 (patch)
tree371afd4062af10e81e8d909abc5613ee964d100a /src/apk_package.h
parenta787038dbe643a7169a4b3610e104ac94b175ed0 (diff)
downloadapk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.tar.gz
apk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.tar.bz2
apk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.tar.xz
apk-tools-89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4.zip
pkg: introduce "replaces_priority"
If two packages replace each other, the one with highes priority will keep the file. Additionally, if we have a package overriding another's file it's remembered and handled properly. This is essentially to allow "policy packages" which just overwrite certain (configuration) files from other package(s).
Diffstat (limited to 'src/apk_package.h')
-rw-r--r--src/apk_package.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index f58954f..83bbd70 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -68,6 +68,7 @@ APK_ARRAY(apk_dependency_array, struct apk_dependency);
struct apk_installed_package {
struct apk_package *pkg;
unsigned int flags;
+ unsigned short replaces_priority;
struct list_head installed_pkgs_list;
struct list_head trigger_pkgs_list;
struct hlist_head owned_dirs;