From 04ceef6b4500c343aeda42b6120abb633655d996 Mon Sep 17 00:00:00 2001 From: valentin <valentinb@fsmpi.rwth-aachen.de> Date: Thu, 3 Oct 2019 12:38:39 +0200 Subject: [PATCH] offline repo: don't gzip package list --- create_offlinerepo.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create_offlinerepo.sh b/create_offlinerepo.sh index ee37a45..332382b 100755 --- a/create_offlinerepo.sh +++ b/create_offlinerepo.sh @@ -40,7 +40,9 @@ apt-get -o Dir="$workspace"/offlinerepo/squashfs-root update apt-get -o Dir="$workspace"/offlinerepo/squashfs-root install --reinstall --print-uris -qq $packages mkdir -p "$dest/dists/$DISTRIB_CODENAME/lip/binary-amd64" -( cd "$dest" && dpkg-scanpackages . | gzip > "dists/$DISTRIB_CODENAME/lip/binary-amd64/Packages.gz" ) +# For some reason apt does not like the gziped package list in the installed system. Leaving the packages list uncompressed solves the problem. +#( cd "$dest" && dpkg-scanpackages . | gzip > "dists/$DISTRIB_CODENAME/lip/binary-amd64/Packages.gz" ) +( cd "$dest" && dpkg-scanpackages . > "dists/$DISTRIB_CODENAME/lip/binary-amd64/Packages" ) cat <<EOF > "$dest/dists/$DISTRIB_CODENAME/lip/binary-amd64/Release" Archive: $DISTRIB_CODENAME -- GitLab