aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
authorJason Woodward2019-08-04 17:42:40 -0400
committerJason Woodward2019-08-04 17:42:40 -0400
commit00dd14c1e58c0e955efb6aeaf6bf68482111e3fc (patch)
tree8c462abb522a35962d3935e1febe10fa0703602c /src/package.c
parent7a7ae6dae5e0b3d1a2fc779d4feb83e2ef5472f8 (diff)
downloadslapt-get-00dd14c1e58c0e955efb6aeaf6bf68482111e3fc.tar.gz
skip exclusions when removing obsolete packages
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c4
1 files changed, 4 insertions, 0 deletions
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 */