From 89d62e9d4d82156177b8b27dea6f0dbc8d887363 Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Thu, 12 Jan 2017 16:36:41 +0200 Subject: abuild.in: fix dealing with named remote patches (closes github #11) for patches like: patchname.patch::http://github/.../commit/.patch use strict filename instead of the whole line --- abuild.in | 8 ++++---- 1 file 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 -- cgit v1.2.3-70-g09d2