diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-01-12 16:36:41 +0200 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-01-27 06:41:59 +0000 |
commit | 89d62e9d4d82156177b8b27dea6f0dbc8d887363 (patch) | |
tree | 3b1ee8a60a25f87ac88beec0fc40287e9e8fba9b | |
parent | 0ff2cf73f5070d5dd4f9df11d8d87b594cc0be7b (diff) | |
download | abuild-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
-rw-r--r-- | abuild.in | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |