SHA256
1
0
forked from pool/qemu

Accepting request 374295 from home:olh:branches:Virtualization

Handle signatures added by git format-patch properly

OBS-URL: https://build.opensuse.org/request/show/374295
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=288
This commit is contained in:
Andreas Färber
2016-03-17 16:12:29 +00:00
committed by Git OBS Bridge
parent 7b058b131c
commit 4300c38927

View File

@@ -60,7 +60,9 @@ rm -rf $GIT_DIR
# Process patches to eliminate useless differences: limit file names to 40 chars
# before extension and remove git signature. ('30' below gets us past dir prefix)
for i in $CMP_DIR/*; do
head -n -3 $i > $CMP_DIR/${i:30:40}.patch
# format-patch may append a signature, which per default contains the git version
# wipe everything starting from the signature tag
sed '/^-- $/Q' $i > $CMP_DIR/${i:30:40}.patch
rm $i
done