diff options
Diffstat (limited to 'package.inc.sh')
-rw-r--r-- | package.inc.sh | 9 |
1 files changed, 4 insertions, 5 deletions
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() { |