summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-24 23:29:35 +0000
committerErik Troan <ewt@redhat.com>2000-08-24 23:29:35 +0000
commite7c4e8dfc8450da1c380b95540624f3fd0ce11ec (patch)
tree3ba8b32892d0005ca35eef5832d89d867f61a05b
parent02d6b18485e5272b18fbd756c86d7703e3d9640a (diff)
downloadanaconda-e7c4e8dfc8450da1c380b95540624f3fd0ce11ec.tar.gz
anaconda-e7c4e8dfc8450da1c380b95540624f3fd0ce11ec.tar.xz
anaconda-e7c4e8dfc8450da1c380b95540624f3fd0ce11ec.zip
don't let the selcetionCount go negative
-rw-r--r--comps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/comps.py b/comps.py
index ccd0ec697..283b0b652 100644
--- a/comps.py
+++ b/comps.py
@@ -177,7 +177,7 @@ class Component:
for pkg in self.pkgs:
pkg.updateSelectionCache()
-
+
for comp in self.includes:
comp.select(forInclude = 1)
@@ -192,7 +192,7 @@ class Component:
if forInclude:
self.selectionCount = self.selectionCount - 1
if self.selectionCount < 0:
- self.selectCount = 0
+ self.selectionCount = 0
else:
self.manuallySelected = 0