Commit 3574ffa9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix slackpkg install/reinstall/remove/simulate

parent 6709bdbf
......@@ -74,6 +74,7 @@ epm_install_names()
docmd $SUDO mpkg install $@
return ;;
slackpkg)
# TODO: use upgrade if package is already installed
docmd $SUDO slackpkg install $@
return ;;
*)
......@@ -106,7 +107,8 @@ epm_ni_install_names()
docmd $SUDO pacman -S --noconfirm $@
return ;;
slackpkg)
docmd $SUDO slackpkg install $@
# TODO: use upgrade if package is already installed
docmd $SUDO slackpkg -batch=on -default_answer=yes install $@
return ;;
*)
fatal "Do not known appropriate install command for $PMTYPE"
......
......@@ -62,6 +62,9 @@ epm_reinstall_files()
apt-pkg)
docmd $SUDO dpkg -i $@
return ;;
slackpkg)
docmd $SUDO installpkg $@
return ;;
esac
# other systems can install file package via ordinary command
......
......@@ -119,6 +119,9 @@ epm_remove_nonint()
zypper-rpm)
docmd $SUDO zypper --non-interactive remove $@
return ;;
slackpkg)
docmd $SUDO slackpkg -batch=on -default_answer=yes remove $@
return ;;
*)
fatal "Do not known command for $PMTYPE"
;;
......
......@@ -39,6 +39,9 @@ case $PMTYPE in
pacman)
CMD="pacman -Qo"
;;
slackpkg)
CMD="slackpkg file-search"
;;
*)
fatal "Do not known search file command for $PMTYPE"
;;
......
......@@ -50,7 +50,8 @@ epm_simulate()
echo no | $SUDO pacman -v -S $filenames
return ;;
slackpkg)
return 0 ;;
docmd slackpkg -batch=on -default_answer=yes download
;;
*)
fatal "Do not known simulate 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