summaryrefslogtreecommitdiff
path: root/src/apk_package.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-01-03 21:06:41 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-01-03 21:06:41 +0200
commitd8ba07e484b0c838ce475202f03e041953b183e1 (patch)
treeeffae9887b80d12591e2f05f29ac95f094671dc7 /src/apk_package.h
parent1f42cc1aed32ebf160db5e812d2f57e654042522 (diff)
downloadapk-tools-d8ba07e484b0c838ce475202f03e041953b183e1.tar.gz
apk-tools-d8ba07e484b0c838ce475202f03e041953b183e1.tar.bz2
apk-tools-d8ba07e484b0c838ce475202f03e041953b183e1.tar.xz
apk-tools-d8ba07e484b0c838ce475202f03e041953b183e1.zip
pkg, db: allow index with unsupported features to be loaded
Just disable installation of packages using the new stuff. Also flag lower case package info fields as non-critical and allow installation even if that features is not supported.
Diffstat (limited to 'src/apk_package.h')
-rw-r--r--src/apk_package.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_package.h b/src/apk_package.h
index 3e50979..8998c7c 100644
--- a/src/apk_package.h
+++ b/src/apk_package.h
@@ -76,6 +76,8 @@ struct apk_installed_package {
struct apk_string_array *pending_triggers;
};
+#define APK_PKG_UNINSTALLABLE ((char*) -1)
+
struct apk_package {
apk_hash_node hash_node;
struct apk_name *name;