[Yum-devel] [PATCH 2/2] Sort obsoleted packages in transaction listings, remove extra newline between.
Ville Skyttä
ville.skytta at iki.fi
Fri Jan 8 21:15:23 UTC 2010
Before:
| foo x86_64 [...]
| obsing x86_64 [...]
| replacing obs2.x86_64 1.0-1.fc11
|
| replacing obs1.x86_64 1.0-1.fc11
|
| quux x86_64 [...]
After:
| foo x86_64 [...]
| obsing x86_64 [...]
| replacing obs1.x86_64 1.0-1.fc11
| replacing obs2.x86_64 1.0-1.fc11
| quux x86_64 [...]
---
output.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/output.py b/output.py
index 3f693e3..d38beea 100755
--- a/output.py
+++ b/output.py
@@ -993,8 +993,8 @@ class YumOutput:
(evr, -v_wid), (repoid, -r_wid), (size, s_wid))
msg = self.fmtColumns(columns, u" ", u"\n")
hibeg, hiend = self._highlight(self.conf.color_update_installed)
- for obspo in obsoletes:
- appended = _(' replacing %s%s%s.%s %s\n\n')
+ for obspo in sorted(obsoletes):
+ appended = _(' replacing %s%s%s.%s %s\n')
appended %= (hibeg, obspo.name, hiend,
obspo.arch, obspo.printVer())
msg = msg+appended
--
1.6.2.5
More information about the Yum-devel
mailing list