summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/toastergui')
-rwxr-xr-xlib/toaster/toastergui/views.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index 28b03d30b..f3b8d3cd5 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -2653,6 +2653,13 @@ if True:
name=dep.depends_on.name)
recipe.includes_set.add(cust_package)
+ try:
+ # when adding the pre-requisite package make sure it's not in the
+ # excluded list from a prior removal.
+ recipe.excludes_set.remove(cust_package)
+ except Package.DoesNotExist:
+ # Don't care if the package had never been excluded
+ pass
except:
logger.warning("Could not add package's suggested"
"dependencies to the list")