From d1b9034faa1b2343455324ca0b2df8446bf5629a Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 16 Mar 2016 08:19:41 +0100 Subject: xrecent: derive default repo from current arch Closes: #35 [via git-merge-pr] --- xrecent | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xrecent') 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;; -- cgit 1.4.1