summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2010-05-08 22:05:52 +0200
committerTill Maas <opensource@till.name>2010-05-08 22:05:52 +0200
commit87467edb298072f72c690ff28527c3cc1a46b6d6 (patch)
treeda65b4d1a38a13fab39fba91c301f25a0704dea8
parente145483cc5c830fbdf47b71bfd78047cae72ffb8 (diff)
downloadfedora-easy-karma-87467edb298072f72c690ff28527c3cc1a46b6d6.tar.gz
fedora-easy-karma-87467edb298072f72c690ff28527c3cc1a46b6d6.tar.xz
fedora-easy-karma-87467edb298072f72c690ff28527c3cc1a46b6d6.zip
Show age of installed rpms
Feature request by Matt McCutchen: https://bugzilla.redhat.com/show_bug.cgi?id=589383
-rwxr-xr-xfedora-easy-karma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py
index b9d6a61..940a814 100755
--- a/fedora-easy-karma.py
+++ b/fedora-easy-karma.py
@@ -193,7 +193,7 @@ class FedoraEasyKarma(object):
# remove version and release
["-".join(b.split("-")[:-2]) for b in affected_builds]]):
continue
- installed_rpms = ["%(name)s-%(version)s-%(release)s.%(arch)s - %(summary)s" % pkg for pkg in installed_pkgs]
+ installed_rpms = ["{rpm.name}-{rpm.version}-{rpm.release}.{rpm.arch} - {rpm.summary} (installed {install_age.days} days ago)".format(rpm=pkg, install_age=(now - datetime.datetime.fromtimestamp(pkg.installtime))) for pkg in installed_pkgs]
if not self.options.list_rpms_only:
print self.bodhi_update_str(update, bodhi_base_url=bc.base_url, width=self.options.wrap_width, wrap_bugs=self.options.wrap_bugs)
if self.options.wrap_rpms: