diff options
author | Dave Reisner <dreisner@archlinux.org> | 2017-05-30 07:15:26 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2017-05-30 07:19:06 -0400 |
commit | 283d692d994d8d3258822c59c679130e68d2499e (patch) | |
tree | 35c50881f08b5c061bacf0915334d334a34edffd | |
parent | aef1401ad4bf3c4c5f5020c548b39802809f6261 (diff) | |
download | asp32-283d692d994d8d3258822c59c679130e68d2499e.tar.xz |
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.
-rw-r--r-- | asp.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() { |