Commit 2b49067c authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-repolist: improve repolist for pacman

parent 140052af
......@@ -150,7 +150,11 @@ case $PMTYPE in
docmd eoget list-repo
;;
pacman)
docmd grep -v -- "^#\|^$" /etc/pacman.conf
if [ -f /etc/pacman.d/mirrorlist ] ; then
docmd grep -v -- "^#\|^$" /etc/pacman.d/mirrorlist | grep "^Server =" | sed -e 's|^Server = ||'
else
docmd grep -v -- "^#\|^$" /etc/pacman.conf
fi
;;
slackpkg)
docmd grep -v -- "^#\|^$" /etc/slackpkg/mirrors
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment