From 283d692d994d8d3258822c59c679130e68d2499e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 30 May 2017 07:15:26 -0400 Subject: hide git repo prefix in list-{all,local} output This is an implementation detail -- no one should really need to know or core which repo the package came from. Moreover, there's nothing you can do with this information. It's conceivable that a package of the same name could exist in both git repos, but this would be semantically forbidden by Arch packaging policies, and not well handled by asp regardless of showing the prefix here. Fixes GH#14. --- asp.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asp.in b/asp.in index 9077617..6d9e69c 100644 --- a/asp.in +++ b/asp.in @@ -163,9 +163,9 @@ dump_packages() { for remote in "${ARCH_GIT_REPOS[@]}"; do "$dumpfn" "$remote" refspecs if [[ $refspecs ]]; then - printf '%s\n' "${refspecs[@]/#packages/"$remote"}" + printf '%s\n' "${refspecs[@]##*/}" fi - done + done | sort } list_local() { -- cgit v1.2.3-70-g09d2