summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.inc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/package.inc.sh b/package.inc.sh
index b4f49a5..7af7a82 100644
--- a/package.inc.sh
+++ b/package.inc.sh
@@ -177,7 +177,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/)
}