03-get-sources: ensure that apt information is available + up2date
authorMichael Prokop <mika@grml.org>
Thu, 17 Dec 2015 09:57:45 +0000 (10:57 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 17 Dec 2015 09:57:45 +0000 (10:57 +0100)
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

index 4deb887..5d59b07 100755 (executable)
@@ -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