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