abuild.in: fix dealing with named remote patches (closes github #11)
for patches like: patchname.patch::http://github/.../commit/<md5hash>.patch use strict filename instead of the whole line
This commit is contained in:
parent
0ff2cf73f5
commit
89d62e9d4d
|
@ -556,7 +556,7 @@ getpkgver() {
|
||||||
have_patches() {
|
have_patches() {
|
||||||
local i
|
local i
|
||||||
for i in $source; do
|
for i in $source; do
|
||||||
case "$i" in
|
case ${i%::*} in
|
||||||
*.patch) return 0;;
|
*.patch) return 0;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -570,10 +570,10 @@ default_prepare() {
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
for i in $source; do
|
for i in $source; do
|
||||||
case $i in
|
case ${i%::*} in
|
||||||
*.patch)
|
*.patch)
|
||||||
msg "$i"
|
msg "${i%::*}"
|
||||||
patch "${patch_args:--p1}" -i "$srcdir/$i" || return 1
|
patch "${patch_args:--p1}" -i "$srcdir/${i%::*}" || return 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue