Commit fe2d0ffd authored by Vitaly Lipatov's avatar Vitaly Lipatov

use slackpkg instead pkgtool for Slackware package manager name

parent 31dc9aa8
......@@ -39,7 +39,7 @@ case $PMTYPE in
pacman)
echo "You need manually add repo to /etc/pacman.conf"
;;
pkgtool)
slackpkg)
echo "You need manually add repo to /etc/slackpkg/mirrors"
;;
*)
......
......@@ -33,7 +33,7 @@ case $PMTYPE in
pacman)
docmd pacman -Si $pkg_names
;;
pkgtool)
slackpkg)
docmd slackpkg info $pkg_names
;;
*)
......
......@@ -73,7 +73,7 @@ epm_install_names()
mpkg)
docmd $SUDO mpkg install $@
return ;;
pkgtool)
slackpkg)
docmd $SUDO slackpkg install $@
return ;;
*)
......@@ -105,7 +105,7 @@ epm_ni_install_names()
pacman)
docmd $SUDO pacman -S --noconfirm $@
return ;;
pkgtool)
slackpkg)
docmd $SUDO slackpkg install $@
return ;;
*)
......@@ -137,7 +137,7 @@ epm_install_files()
pacman)
docmd $SUDO pacman -U $@
return ;;
pkgtool)
slackpkg)
docmd $SUDO installpkg $@
return ;;
*)
......
......@@ -48,7 +48,7 @@ case $PMTYPE in
pacman)
CMD="pacman -Qs"
;;
pkgtool)
slackpkg)
CMD="ls -1 /var/log/packages/"
;;
*)
......
......@@ -41,7 +41,7 @@ epm_reinstall_names()
pacman)
docmd $SUDO pacman -U $@
return ;;
pkgtool)
slackpkg)
docmd $SUDO slackpkg reinstall $@
return ;;
*)
......
......@@ -35,7 +35,7 @@ epm_remove_low()
emerge)
docmd $SUDO emerge -unmerge $@
return ;;
pkgtool)
slackpkg)
docmd $SUDO removepkg $@
return ;;
*)
......@@ -91,7 +91,7 @@ epm_remove_names()
mpkg)
docmd $SUDO mpkg remove $@
return ;;
pkgtool)
slackpkg)
docmd $SUDO slackpkg remove $@
return ;;
*)
......
......@@ -39,7 +39,7 @@ case $PMTYPE in
pacman)
echo "You need remove repo from /etc/pacman.conf"
;;
pkgtool)
slackpkg)
echo "You need remove repo from /etc/slackpkg/mirrors"
;;
*)
......
......@@ -49,7 +49,7 @@ case $PMTYPE in
pacman)
docmd cat /etc/pacman.conf
;;
pkgtool)
slackpkg)
docmd cat /etc/slackpkg/mirrors
;;
*)
......
......@@ -49,7 +49,7 @@ case $PMTYPE in
mpkg)
CMD="mpkg search"
;;
pkgtool)
slackpkg)
CMD="slackpkg search"
;;
*)
......
......@@ -174,7 +174,7 @@ case $DISTRNAME in
CMD="yum-rpm"
;;
Slackware)
CMD="pkgtool"
CMD="slackpkg"
;;
SUSE|SLED|SLES)
CMD="zypper-rpm"
......
......@@ -49,7 +49,7 @@ epm_simulate()
showcmd $SUDO pacman -v -S $filenames
echo no | $SUDO pacman -v -S $filenames
return ;;
pkgtool)
slackpkg)
return 0 ;;
*)
fatal "Do not known simulate command for $PMTYPE"
......
......@@ -47,7 +47,7 @@ case $PMTYPE in
emerge)
docmd $SUDO emerge --sync
;;
pkgtool)
slackpkg)
docmd $SUDO slackpkg update
;;
*)
......
......@@ -47,7 +47,7 @@ epm_upgrade()
pkg_add)
CMD="freebsd-update fetch install"
;;
pkgtool)
slackpkg)
CMD="slackpkg upgrade-all"
;;
*)
......
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