diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-04 22:12:00 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-04 22:12:00 +0000 |
commit | 7fae5058098ee9158980de329d9b25f8b437f89b (patch) | |
tree | ee1976741d012522bc5466845cfd5abb229863b3 | |
parent | 8522ead3ca2b76a338f614e57e1e7d7b2fa94da0 (diff) | |
download | anaconda-7fae5058098ee9158980de329d9b25f8b437f89b.tar.gz anaconda-7fae5058098ee9158980de329d9b25f8b437f89b.tar.xz anaconda-7fae5058098ee9158980de329d9b25f8b437f89b.zip |
added totalSize()
-rw-r--r-- | comps.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(): |