* 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
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -z "$patchFlags"; then
|
||||||
|
patchFlags="-p1"
|
||||||
|
fi
|
||||||
|
|
||||||
for i in $patches; do
|
for i in $patches; do
|
||||||
header "applying patch $i" 3
|
header "applying patch $i" 3
|
||||||
local uncompress=cat
|
local uncompress=cat
|
||||||
@ -485,7 +489,7 @@ patchW() {
|
|||||||
uncompress=bunzip2
|
uncompress=bunzip2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
$uncompress < $i | patch -p1 || fail
|
$uncompress < $i | patch $patchFlags || fail
|
||||||
stopNest
|
stopNest
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user