Enhanced the '--last' option to include release and version numbers
authormsf <devnull@localhost>
Fri, 12 Jun 1998 19:50:44 +0000 (19:50 +0000)
committermsf <devnull@localhost>
Fri, 12 Jun 1998 19:50:44 +0000 (19:50 +0000)
CVS patchset: 2148
CVS date: 1998/06/12 19:50:44

rpmpopt

diff --git a/rpmpopt b/rpmpopt
index 5f86157..c8bad93 100644 (file)
--- a/rpmpopt
+++ b/rpmpopt
@@ -54,5 +54,5 @@ rpm alias --triggerscripts --qf '\
 [trigger%{TRIGGERTYPE} script (through %{TRIGGERSCRIPTPROG}) -- %{TRIGGERCONDS}\n\
 %{TRIGGERSCRIPTS}\n]'
 
-rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %-27{NAME} %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)}|\n' \
-       --pipe "sort -r -n | sed 's,^..........,,'"
+rpm alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)}|\n' \
+       --pipe "sort -r -n | sed 's,^..........,,' | awk '{printf(\"%-35s %-3s %-3s %2s %-8s %-4s\n\", $1, $2, $3, $4, $5, $6)}' "