Update fetch.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-07 22:37:49 +02:00
parent 514cad81a9
commit cb12534593

View File

@ -36,11 +36,12 @@ do
else else
for i in ./*.deb for i in ./*.deb
do do
rm -rfv ./output/* || true
mkdir $i-tmp mkdir $i-tmp
dpkg-deb -R $i $i-tmp dpkg-deb -R $i $i-tmp
sed -i "s#$BIN_VERSION#$TARGET_VERSION#g" $i-tmp/DEBIAN/control sed -i "s#$BIN_VERSION#$TARGET_VERSION#g" $i-tmp/DEBIAN/control
dpkg-deb -b $i-tmp $i-fixed.deb dpkg-deb -b $i-tmp $i-fixed-$PIKA_BIN_ARCH.deb
mv -vf ./*-fixed.deb ./output/ mv -vf ./*-fixed-$PIKA_BIN_ARCH.deb ./output/
done done
fi fi
else else