Commit 7b909986 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add initial support for window package manager Chocolatey

parent 7bfca544
......@@ -115,6 +115,9 @@ epm_ni_install_names()
# npackdcl update --package=<package> (remove old and install new)
docmd npackdcl add --package=$@
return ;;
chocolatey)
docmd chocolatey install $@
return ;;
slackpkg)
# TODO: use upgrade if package is already installed
sudocmd /usr/sbin/slackpkg -batch=on -default_answer=yes install $@
......
......@@ -43,6 +43,9 @@ case $PMTYPE in
npackd)
CMD="npackdcl list"
;;
# chocolatey)
# CMD="chocolatey list"
# ;;
slackpkg)
CMD="ls -1 /var/log/packages/"
;;
......
......@@ -75,6 +75,9 @@ epm_remove_names()
npackd)
docmd npackdcl remove --package=$@
return ;;
chocolatey)
docmd chocolatey uninstall $@
return ;;
slackpkg)
sudocmd /usr/sbin/slackpkg remove $@
return ;;
......
......@@ -52,6 +52,9 @@ case $PMTYPE in
npackd)
fatal "FIXME: Have not idea for search with npackdcl list"
;;
chocolatey)
CMD="chocolatey list"
;;
slackpkg)
CMD="/usr/sbin/slackpkg search"
;;
......
......@@ -188,7 +188,7 @@ case $DISTRNAME in
CMD="zypper-rpm"
;;
Windows)
CMD="npackd"
CMD="chocolatey"
;;
*)
fatal "Do not known DISTRNAME $DISTRNAME"
......
......@@ -45,6 +45,9 @@ epm_upgrade()
pkg_add)
CMD="freebsd-update fetch install"
;;
chocolatey)
CMD="chocolatey update all"
;;
slackpkg)
CMD="/usr/sbin/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