From e83b8fe2f3431fdfba68c744bc32defd1ec21152 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 17 Dec 2015 10:57:45 +0100 Subject: [PATCH] 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'. --- etc/grml/fai/config/scripts/GRMLBASE/03-get-sources | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.1.4