generated from general-packages/pika-pkg-template
Update fetch.sh
This commit is contained in:
parent
83c0903606
commit
7ebc7a5718
4
fetch.sh
4
fetch.sh
@ -29,7 +29,7 @@ do
|
|||||||
apt download -y $bin_pkg:$PIKA_BIN_ARCH || echo "Maybe Error: $bin_pkg doesn't exist in $PIKA_BIN_ARCH" && continue
|
apt download -y $bin_pkg:$PIKA_BIN_ARCH || echo "Maybe Error: $bin_pkg doesn't exist in $PIKA_BIN_ARCH" && continue
|
||||||
if [[ $BIN_VERSION == $TARGET_VERSION ]]
|
if [[ $BIN_VERSION == $TARGET_VERSION ]]
|
||||||
then
|
then
|
||||||
mv ./*.deb ./output/
|
cp -vf ./*.deb ./output/
|
||||||
else
|
else
|
||||||
for i in ./*.deb
|
for i in ./*.deb
|
||||||
do
|
do
|
||||||
@ -37,7 +37,7 @@ do
|
|||||||
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.deb
|
||||||
mv ./*-fixed.deb ./output/
|
cp -vf ./*-fixed.deb ./output/
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user