makerepo.sh: clear old patches before splitting patches

Otherwise, patches from a previous run might interfere.
This commit is contained in:
Thomas Haller 2015-12-01 14:08:01 +01:00
parent 31aa552f42
commit 58d180acaa

View file

@ -481,6 +481,7 @@ EOF
patch -f --no-backup-if-mismatch -R "-p$PNUM" < "../${LAST_PATCH[$i]}" || (
# error applying patch. Maybe we have a multi line patch...
rm -f "../${LAST_PATCH[$i]}".makerepo-split.*
split_patch "../${LAST_PATCH[$i]}" ".makerepo-split."
git reset --hard