* Allow the patch flags to be overriden through $patchFlags.

svn path=/nixpkgs/trunk/; revision=7493
This commit is contained in:
Eelco Dolstra 2006-12-27 17:33:37 +00:00
parent 8988c16eea
commit 1d9dcbba22

View file

@ -474,6 +474,10 @@ patchW() {
return
fi
if test -z "$patchFlags"; then
patchFlags="-p1"
fi
for i in $patches; do
header "applying patch $i" 3
local uncompress=cat
@ -485,7 +489,7 @@ patchW() {
uncompress=bunzip2
;;
esac
$uncompress < $i | patch -p1 || fail
$uncompress < $i | patch $patchFlags || fail
stopNest
done
}