index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Eli Schwartz <eschwartz@archlinux.org> | 2017-09-30 23:40:47 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2018-05-13 09:16:20 -0400 |
commit | 5b3c14454a9c1ec00a3ef11f3f599281127b383d (patch) | |
tree | 6a743b950600a3781c5d5ef177452c56eefab743 | |
parent | 4408bb2a1529b5a1e62e12ac617daac945d44e27 (diff) |
-rw-r--r-- | arch-nspawn.in | 3 |
diff --git a/arch-nspawn.in b/arch-nspawn.in index 50ce674..b9c846e 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -58,8 +58,9 @@ else cache_dirs=("$cache_dir") fi +pacconf_cmd=$(command -v pacman-conf || command -v pacconf) # shellcheck disable=2016 -host_mirror=$(pacman -Sddp extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#') +host_mirror=$($pacconf_cmd --repo extra Server 2> /dev/null | head -1 | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#') # shellcheck disable=2016 [[ $host_mirror == *file://* ]] && host_mirror_path=$(echo "$host_mirror" | sed -r 's#file://(/.*)/\$repo/os/\$arch#\1#g') |