From 89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 19 Oct 2011 11:38:23 -0400 Subject: 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). --- src/apk_package.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/apk_package.h') 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; -- cgit v1.2.3-60-g2f50