make sure not to override original series

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-05 22:27:27 +02:00
parent d9b1034a66
commit 4998f0af60

View File

@ -32,13 +32,13 @@ if git clone --depth=1 https://git.pika-os.com/upstream-patches/"$PIKA_PACKAGE_N
then
if cat ./debian/source/format | grep 'quilt'
then
cp -vf ../patches/ ./debian/
cp -vf ../patches/patches/* ./debian/
cat ../series >> ./debian/patches/series
else
for i in $(cat ../series)
do
echo "Applying Patch: $i"
patch -Np1 -i ../patches/$i || bash -c "echo "Applying Patch $i Failed!" && exit 2"
patch -Np1 -i ../patches/patches/$i || bash -c "echo "Applying Patch $i Failed!" && exit 2"
done
fi
fi