summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-01-12 16:36:41 +0200
committerWilliam Pitcock <nenolod@dereferenced.org>2017-01-27 06:41:59 +0000
commit89d62e9d4d82156177b8b27dea6f0dbc8d887363 (patch)
tree3b1ee8a60a25f87ac88beec0fc40287e9e8fba9b /abuild.in
parent0ff2cf73f5070d5dd4f9df11d8d87b594cc0be7b (diff)
downloadabuild-89d62e9d4d82156177b8b27dea6f0dbc8d887363.tar.gz
abuild-89d62e9d4d82156177b8b27dea6f0dbc8d887363.tar.bz2
abuild-89d62e9d4d82156177b8b27dea6f0dbc8d887363.tar.xz
abuild-89d62e9d4d82156177b8b27dea6f0dbc8d887363.zip
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
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/abuild.in b/abuild.in
index ce42c5a..2b2d23b 100644
--- a/abuild.in
+++ b/abuild.in
@@ -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