Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-05-30 07:15:26 -0400
committerDave Reisner <dreisner@archlinux.org>2017-05-30 07:19:06 -0400
commit283d692d994d8d3258822c59c679130e68d2499e (patch)
tree35c50881f08b5c061bacf0915334d334a34edffd
parentaef1401ad4bf3c4c5f5020c548b39802809f6261 (diff)
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.in4
1 files 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() {