summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_conf.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-08-18 01:40:17 (EDT)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-08-18 01:40:17 (EDT)
commit239861f73d8f69744b8ea0eb3373ef0f4453971b (patch)
tree376438f5f6350e7c06bfb6d50d2a4ca7be3a91bd /libopkg/opkg_conf.c
parent0a4946b3e913a2affe5fd342aa88e2533d06356e (diff)
Allow blacklisting a package in the status file.
To blacklist a particular package, add the following status entry for the package to be blacklisted: Status: deinstall hold not-installed Should fix the opkg end of Issue #46. OpenEmbedded will need to correctly prime the status file. git-svn-id: http://opkg.googlecode.com/svn/trunk@553 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_conf.c')
-rw-r--r--libopkg/opkg_conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c
index f1ef0d0..bffeb84 100644
--- a/libopkg/opkg_conf.c
+++ b/libopkg/opkg_conf.c
@@ -359,7 +359,8 @@ opkg_conf_write_status_files(void)
/* We don't need most uninstalled packages in the status file */
if (pkg->state_status == SS_NOT_INSTALLED
&& (pkg->state_want == SW_UNKNOWN
- || pkg->state_want == SW_DEINSTALL
+ || (pkg->state_want == SW_DEINSTALL
+ && pkg->state_flag != SF_HOLD)
|| pkg->state_want == SW_PURGE)) {
continue;
}