Commit 6c0a1dfe authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fix

parent de092e93
......@@ -145,6 +145,12 @@ check_command()
addrepo) # HELPCMD: add package repo
epm_cmd=addrepo
;;
repolist|sl) # HELPCMD: print repo list
epm_cmd=repolist
;;
removerepo|rr) # HELPCMD: remove package repo
epm_cmd=removerepo
;;
*)
return 1
esac
......
......@@ -25,10 +25,10 @@ case $PMTYPE in
# docmd $SUDO apt-get check || exit
# ;;
yum-rpm)
docmd $SUDO yum repolist || exit
docmd $SUDO yum repolist
;;
zypper-rpm)
docmd $USDO zypper sl
docmd $USDO zypper sl -d
;;
*)
fatal "Do not known command for $PMTYPE"
......
......@@ -35,6 +35,9 @@ case $PMTYPE in
urpm-rpm)
docmd $SUDO urpmi.update -a
;;
pacman)
docmd $SUDO pacman -S -y
;;
zypper-rpm)
docmd $SUDO zypper refresh
;;
......
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