aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2008-12-06 18:39:00 +0000
committerJason Woodward2008-12-06 18:39:00 +0000
commita3609cfdbda9f24886964d25291a24652b7aff2d (patch)
treeea255baee3ed0fb16528ca71067ac8c8e32d7f9e
parentc034fa24cfff01717d760901206bf3021efbcbc8 (diff)
downloadslapt-get-a3609cfdbda9f24886964d25291a24652b7aff2d.tar.gz
validate against installed package list when creating a list of obsolete packages and their dependencies so as to not try and remove uninstalled packages
-rw-r--r--ChangeLog5
-rw-r--r--src/package.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6846278..c666db0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
-0.10.0 Nov 28, 2008
+0.10.0 Dec 06, 2008
+ * validate against installed package list when creating a list of obsolete
+ packages and their dependencies so as to not try and remove uninstalled
+ packages
* translation updates
* (libslapt) added slapt_write_rc_config (incorporating from gslapt)
* (libslapt) added parsing of disabled sources (instead of ignoring what
diff --git a/src/package.c b/src/package.c
index a623a60..8d501eb 100644
--- a/src/package.c
+++ b/src/package.c
@@ -3381,7 +3381,8 @@ struct slapt_pkg_list *
for (c = 0; c < deps->pkg_count; ++c ) {
slapt_pkg_info_t *dep = deps->pkgs[c];
- if ( slapt_get_exact_pkg(avail_pkgs,dep->name, dep->version) == NULL ) {
+ /* if it is installed, we add it to the list */
+ if ( slapt_get_exact_pkg(installed_pkgs,dep->name, dep->version) == NULL ) {
slapt_add_pkg_to_pkg_list(obsolete,dep);
}
}