From: Michael Prokop Date: Thu, 17 Dec 2015 09:57:45 +0000 (+0100) Subject: 03-get-sources: ensure that apt information is available + up2date X-Git-Tag: v0.28.0~47 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=e83b8fe2f3431fdfba68c744bc32defd1ec21152 03-get-sources: ensure that apt information is available + up2date If we don't run 'apt-get update' at this stage we might not have the according files available needed to run 'apt-get source'. --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources b/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources index 4deb887..5d59b07 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources +++ b/etc/grml/fai/config/scripts/GRMLBASE/03-get-sources @@ -22,6 +22,8 @@ bailout() { rm -f "$PACKAGE_LIST" } +$ROOTCMD apt-get update + $ROOTCMD dpkg-query -W -f='${Package}\n' > "${PACKAGE_LIST}" if ! [ -r "${PACKAGE_LIST}" ] ; then