summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
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