summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Gehring <mg@ebfe.org>2016-03-16 08:19:41 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-03-16 10:21:39 +0100
commitd1b9034faa1b2343455324ca0b2df8446bf5629a (patch)
treeec95ed2306ca4c212bf6da352c90894ea67072e3
parent99bfe8515b865567ed3de53026a71121b072910b (diff)
downloadxtools-d1b9034faa1b2343455324ca0b2df8446bf5629a.tar.gz
xtools-d1b9034faa1b2343455324ca0b2df8446bf5629a.tar.xz
xtools-d1b9034faa1b2343455324ca0b2df8446bf5629a.zip
xrecent: derive default repo from current arch
Closes: #35 [via git-merge-pr]
-rwxr-xr-xxrecent8
1 files changed, 7 insertions, 1 deletions
diff --git a/xrecent b/xrecent
index fd9ec21..9d3571c 100755
--- a/xrecent
+++ b/xrecent
@@ -1,7 +1,13 @@
 #!/bin/sh
 # xrecent [REPOURL|XBPS_ARCH] - list packages in repo ordered by build date
 
-repo=http://repo.voidlinux.eu/current/
+case "$(xbps-uhelper arch)" in
+	*-musl)
+		repo=http://muslrepo.voidlinux.eu/current/;;
+	*)
+		repo=http://repo.voidlinux.eu/current/;;
+esac
+
 case "$1" in
 */*)
 	repo=$1;;