GRMLBASE/95-package-information: drop field width option in dpkg-query command
authorMichael Prokop <mika@grml.org>
Sat, 9 Jun 2012 13:10:47 +0000 (15:10 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 9 Jun 2012 13:10:47 +0000 (15:10 +0200)
dpkg v1.16.4 has a regression, failing the dpkg-query command to
execute correctly. Because of that our daily builds fail, no need
to force usage of the field width option, so let's just drop it.
See Debian's BTS #676796

etc/grml/fai/config/scripts/GRMLBASE/95-package-information

index 1d148e3..0a7a430 100755 (executable)
@@ -18,7 +18,7 @@ else
    COLUMNS=200 $ROOTCMD dpkg --get-selections > "${LOGDIR}"/dpkg.selections
    # store list of packages sorted by size:
    if [ -x $target/usr/bin/dpkg-query ] ; then
    COLUMNS=200 $ROOTCMD dpkg --get-selections > "${LOGDIR}"/dpkg.selections
    # store list of packages sorted by size:
    if [ -x $target/usr/bin/dpkg-query ] ; then
-      $ROOTCMD dpkg-query -W --showformat='${Package}\t${Installed-Size;10}\n' > \
+      $ROOTCMD dpkg-query -W --showformat='${Package}\t${Installed-Size}\n' > \
       "${LOGDIR}"/packages.size
    fi
 fi
       "${LOGDIR}"/packages.size
    fi
 fi