r4 - trunk/logbuch-tools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 14 14:25:30 CET 2006


Author: thomas
Date: 2006-12-14 14:25:30 +0100 (Thu, 14 Dec 2006)
New Revision: 4

Modified:
   trunk/logbuch-tools/logbuch-installer
Log:
Create a list of installed Debian packages if available.

Original commit on Thu Aug 24 10:29:40 2006 +0200 by Thomas Arendsen Hein


Modified: trunk/logbuch-tools/logbuch-installer
===================================================================
--- trunk/logbuch-tools/logbuch-installer	2006-12-14 12:28:15 UTC (rev 3)
+++ trunk/logbuch-tools/logbuch-installer	2006-12-14 13:25:30 UTC (rev 4)
@@ -64,6 +64,10 @@
             echo
             echo -e "`date +'%d.%m.%Y'`\t${LOGBUCH_USER:-${LOGNAME:-?}}"
             echo "* $LOGBUCH angelegt"
+            if [ -x /usr/bin/dpkg ]; then
+              echo "* Paketliste:"
+              COLUMNS=300 dpkg -l|awk '$1 ~ /^ii$/ { print " ", $2, $3 }'
+            fi
         } >> "$LOGBUCH" || exit $?
     fi
 



More information about the Adminton-commits mailing list