fix: wrong path

This commit is contained in:
Filip Rojek 2023-05-19 19:53:27 +02:00
parent 114f053f09
commit 5649296486

View File

@ -5,14 +5,14 @@ REPODIR="$1"
ARCHS="$($LS -l $REPODIR/apt-repo/dists/stable/main/ | awk '{print $9}' | awk NF | awk -F - '{print $2}')" ARCHS="$($LS -l $REPODIR/apt-repo/dists/stable/main/ | awk '{print $9}' | awk NF | awk -F - '{print $2}')"
# generate Packages file # generate Packages file
for ARCH in $ARCHS; do
cd $REPODIR/apt-repo/ cd $REPODIR/apt-repo/
for ARCH in $ARCHS; do
dpkg-scanpackages --multiversion --arch $ARCH "pool/" > "dists/stable/main/binary-$ARCH/Packages" dpkg-scanpackages --multiversion --arch $ARCH "pool/" > "dists/stable/main/binary-$ARCH/Packages"
# compress Packages file # compress Packages file
cat "dists/stable/main/binary-$ARCH/Packages" | gzip -9 > "dists/stable/main/binary-$ARCH/Packages.gz" cat "dists/stable/main/binary-$ARCH/Packages" | gzip -9 > "dists/stable/main/binary-$ARCH/Packages.gz"
done done
# generate Release file # generate Release file
cd "$REPODIR/apt-repo/dists/stable/" cd "dists/stable/"
$DIR/generate-release.sh > "Release" $DIR/generate-release.sh > "Release"