mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
* Allow the patch flags to be overriden through $patchFlags.
svn path=/nixpkgs/trunk/; revision=7493
This commit is contained in:
parent
8988c16eea
commit
1d9dcbba22
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user