summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-08-04 20:04:54 +0000
committerMatt Wilson <msw@redhat.com>2000-08-04 20:04:54 +0000
commitdc95a19cc1c19e53fc920b0dff34c79c6db49bb9 (patch)
treebf9ed94a90592c4b5b2dbf7e6caf7d1c0dbb9e5b /textw
parent3f9f5f699b7d78783deb9a5369eb15871ec79808 (diff)
downloadanaconda-dc95a19cc1c19e53fc920b0dff34c79c6db49bb9.tar.gz
anaconda-dc95a19cc1c19e53fc920b0dff34c79c6db49bb9.tar.xz
anaconda-dc95a19cc1c19e53fc920b0dff34c79c6db49bb9.zip
knock the size tags from bytes to k so that the size formatter prints them properly
Diffstat (limited to 'textw')
-rw-r--r--textw/packages_text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/textw/packages_text.py b/textw/packages_text.py
index f8a8083e3..c175b9e03 100644
--- a/textw/packages_text.py
+++ b/textw/packages_text.py
@@ -136,7 +136,7 @@ class IndividualPackageWindow:
self.groupSelCount[key] = self.groupSelCount[key] + 1
self.ct.setEntry(header, "%-*s %s" % (self.length,
header[rpm.RPMTAG_NAME],
- self.printSize(header[rpm.RPMTAG_SIZE])))
+ self.printSize(header[rpm.RPMTAG_SIZE] / 1024)))
else:
self.groupSize[key] = self.groupSize[key] - (header[rpm.RPMTAG_SIZE] / 1024)
self.total = self.total - header[rpm.RPMTAG_SIZE]
@@ -223,7 +223,7 @@ class IndividualPackageWindow:
ct.append (name, key)
for header in self.groups[key]:
if header.isSelected():
- name = "%-*s %s" % (self.length, header[rpm.RPMTAG_NAME], self.printSize(header[rpm.RPMTAG_SIZE]))
+ name = "%-*s %s" % (self.length, header[rpm.RPMTAG_NAME], self.printSize(header[rpm.RPMTAG_SIZE] / 1024))
else:
name = "%-*s" % (self.length + 7, header[rpm.RPMTAG_NAME])
ct.addItem (name, (index, snackArgs["append"]),