Commit 89d62e9d authored by Valery Kartel's avatar Valery Kartel Committed by Ariadne Conill

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
parent 0ff2cf73
......@@ -556,7 +556,7 @@ getpkgver() {
have_patches() {
local i
for i in $source; do
case "$i" in
case ${i%::*} in
*.patch) return 0;;
esac
done
......@@ -570,10 +570,10 @@ default_prepare() {
return 0
fi
for i in $source; do
case $i in
case ${i%::*} in
*.patch)
msg "$i"
patch "${patch_args:--p1}" -i "$srcdir/$i" || return 1
msg "${i%::*}"
patch "${patch_args:--p1}" -i "$srcdir/${i%::*}" || return 1
;;
esac
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment