summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/package.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c71cbea..87cee9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
-0.11.1 Jul 28, 2019
+0.11.1 Aug 04, 2019
+ * skip exclusions when removing obsolete packages
* update naming convention for data structures
* update dependencies
* small cleanups
diff --git a/src/package.c b/src/package.c
index 60fdc7c..136e498 100644
--- a/src/package.c
+++ b/src/package.c
@@ -2928,6 +2928,10 @@ slapt_get_obsolete_pkgs(const slapt_config_t *global_config, slapt_vector_t *ava
slapt_vector_t *to_remove = slapt_vector_t_init(NULL);
slapt_vector_t_foreach (slapt_pkg_t *, p, installed_pkgs) {
+
+ if (slapt_is_excluded(global_config, p))
+ continue;
+
/* if we can't find the installed package in our available pkg list, it must be obsolete */
if (slapt_get_newest_pkg(avail_pkgs, p->name) == NULL) {
/* any packages that require this package we are about to remove should be scheduled to remove as well */