diff --git a/create_offlinerepo.sh b/create_offlinerepo.sh index ee37a451623b5513f4f95717ef2a77a774a48ec3..332382bb782e221d52cb8165077502319f1b3a85 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