Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/package.inc.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-17 23:10:13 +0100
committerErich Eckner <git@eckner.net>2019-01-17 23:10:13 +0100
commitc4de3d676c5bbbad4ea1b25c80e3221203df1dc3 (patch)
tree97e514f06ef1c36d0fcad332ea707ba319b870d9 /package.inc.sh
parent89a50089759b73965e0dddaa5846b1c9a2ad69b3 (diff)
parent81faae5cd21d7932030cf5faf8c3eb76745a2af7 (diff)
Merge branch 'upstream/master'
Diffstat (limited to 'package.inc.sh')
-rw-r--r--package.inc.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package.inc.sh b/package.inc.sh
index 109a75e..4d1ab7b 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -74,7 +74,7 @@ package_log() {
logargs=()
;;
*)
- die 'internal error: unknown log method: %s' "$method"
+ log_fatal 'BUG: unknown log method: %s' "$method"
;;
esac
@@ -183,7 +183,9 @@ package_get_repos_with_arch() {
pkgname=$1
while read -r path; do
- IFS=/- read -r _ repo arch <<<"$path"
+ path=${path##*/}
+ repo=${path%-*}
+ arch=${path##*-}
printf '%s %s\n' "$repo" "$arch"
done < <(git ls-tree --name-only "remotes/$remote/packages/$pkgname" repos/)
}