summaryrefslogtreecommitdiff
path: root/rpmpopt
diff options
context:
space:
mode:
authormsf <devnull@localhost>1998-06-12 19:50:44 +0000
committermsf <devnull@localhost>1998-06-12 19:50:44 +0000
commitd32b57aafa60dccb0af4996e3eed1d127e57be06 (patch)
tree8094af21125b122d9eda1cb9d3abf1516e6f7bd2 /rpmpopt
parent10cc4878e97b7feaaaad7ab2a5f634b3dce586bc (diff)
downloadrpm-d32b57aafa60dccb0af4996e3eed1d127e57be06.tar.gz
rpm-d32b57aafa60dccb0af4996e3eed1d127e57be06.tar.bz2
rpm-d32b57aafa60dccb0af4996e3eed1d127e57be06.zip
Enhanced the '--last' option to include release and version numbers
CVS patchset: 2148 CVS date: 1998/06/12 19:50:44
Diffstat (limited to 'rpmpopt')
-rw-r--r--rpmpopt4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmpopt b/rpmpopt
index 5f861570f..c8bad93e7 100644
--- 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)}' "