index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | package.inc.sh | 9 |
diff --git a/package.inc.sh b/package.inc.sh index e7dce7f..3f301c0 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -121,13 +121,12 @@ package_checkout() { package_get_repos_with_arch() { local pkgname=$1 remote=$2 - local objtype path arch repo + local path arch repo - while read _ objtype _ path; do - [[ $objtype = tree ]] || continue - IFS=- read repo arch <<<"${path#repos/}" + while read path; do + IFS=/- read _ repo arch <<<"$path" printf '%s %s\n' "$repo" "$arch" - done < <(git ls-tree "$remote/packages/$pkgname" repos/) + done < <(git ls-tree --name-only "$remote/packages/$pkgname" repos/) } package_get_arches() { |