From b4b7c0996c73291b34f0566f74ad2513c44a6371 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 25 Mar 2008 20:53:02 -0400 Subject: Keep track of what packages change state during an installation, and include that in the commit message at the end. --- list-installed.d/50list-installed | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 list-installed.d/50list-installed (limited to 'list-installed.d/50list-installed') diff --git a/list-installed.d/50list-installed b/list-installed.d/50list-installed new file mode 100755 index 0000000..116a42a --- /dev/null +++ b/list-installed.d/50list-installed @@ -0,0 +1,8 @@ +#!/bin/sh +# Output to stdout a *sorted* list of all currently installed +# (or removed but still with config-files) packages, in the +# format "package version\n". +if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then + dpkg-query -W -f '${Status}\t${Package} ${Version}\n' | \ + egrep '(ok installed|ok config-files)' | cut -f2,3 +fi -- cgit v1.2.3