Commit 5e60648b authored by Vitaly Lipatov's avatar Vitaly Lipatov

add initial Slackware support (pkgtool)

parent cb4c0238
......@@ -67,6 +67,9 @@ epm_install_names()
pacman)
docmd $SUDO pacman -S $@
return ;;
pkgtool)
docmd $SUDO installpkg $@
return ;;
*)
fatal "Do not known install command for $PMTYPE"
;;
......@@ -95,6 +98,9 @@ epm_ni_install_names()
pacman)
docmd $SUDO pacman -S --noconfirm $@
return ;;
pkgtool)
docmd $SUDO installpkg $@
return ;;
*)
fatal "Do not known appropriate install command for $PMTYPE"
;;
......
......@@ -94,6 +94,9 @@ case $PMTYPE in
pacman)
CMD="pacman -R --noconfirm"
;;
pkgtool)
CMD="removepkg"
;;
*)
fatal "Do not known command for $PMTYPE"
;;
......
......@@ -166,6 +166,9 @@ case $DISTRNAME in
Fedora|LinuxXP|ASPLinux|CentOS|RHEL|Scientific)
CMD="yum-rpm"
;;
Slackware)
CMD="pkgtool"
;;
SUSE|SLED|SLES)
CMD="zypper-rpm"
;;
......
......@@ -44,6 +44,8 @@ epm_simulate()
showcmd $SUDO pacman -v -S $pkg_filenames
echo no | $SUDO pacman -v -S $pkg_filenames
return ;;
pkgtool)
return 0 ;;
*)
fatal "Do not known simulate command for $PMTYPE"
;;
......
......@@ -38,6 +38,9 @@ epm_upgrade()
zypper-rpm)
CMD="zypper dist-upgrade"
;;
pacman)
CMD="zypper -S -u"
;;
*)
fatal "Do not known command for $PMTYPE"
;;
......
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