summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-04 22:12:00 +0000
committerErik Troan <ewt@redhat.com>2000-05-04 22:12:00 +0000
commit7fae5058098ee9158980de329d9b25f8b437f89b (patch)
treeee1976741d012522bc5466845cfd5abb229863b3
parent8522ead3ca2b76a338f614e57e1e7d7b2fa94da0 (diff)
downloadanaconda-7fae5058098ee9158980de329d9b25f8b437f89b.tar.gz
anaconda-7fae5058098ee9158980de329d9b25f8b437f89b.tar.xz
anaconda-7fae5058098ee9158980de329d9b25f8b437f89b.zip
added totalSize()
-rw-r--r--comps.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/comps.py b/comps.py
index 3d1a8e97e..edacc7261 100644
--- a/comps.py
+++ b/comps.py
@@ -213,6 +213,12 @@ class ComponentSet:
return "%dM" % (megs)
+ def totalSize(self):
+ total = 0
+ for pkg in self.packages.list():
+ total = total + pkg['size']
+ return total
+
def size(self):
total = 0
for pkg in self.packages.list():