Commit 05a6e2fc authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent 3b92fde7
dotty - через ссылки на реальные названия (epm req верхнего уровня)
менеджер пакетов из NetBSD — pkgsrc (команды для поиска нужных пакетов – pkgin update; pkgin avail; pkgin search). менеджер пакетов из NetBSD — pkgsrc (команды для поиска нужных пакетов – pkgin update; pkgin avail; pkgin search).
Загрузку конфига Загрузку конфига
......
...@@ -289,6 +289,7 @@ check_option() ...@@ -289,6 +289,7 @@ check_option()
short="--short" short="--short"
;; ;;
--sort) # HELPOPT: sort output, f.i. --sort=size (supported only for packages command) --sort) # HELPOPT: sort output, f.i. --sort=size (supported only for packages command)
# TODO: how to read arg?
sort="$1" sort="$1"
;; ;;
--auto) # HELPOPT: non interactive mode --auto) # HELPOPT: non interactive mode
......
...@@ -246,6 +246,10 @@ epm_install_files() ...@@ -246,6 +246,10 @@ epm_install_files()
{ {
[ -z "$1" ] && return [ -z "$1" ] && return
# TODO: check read permissions
# sudo test -r FILE
# do not fallback to install_names if we have no permissions
case $PMTYPE in case $PMTYPE in
apt-rpm) apt-rpm)
sudocmd rpm -Uvh $force $nodeps $@ && return sudocmd rpm -Uvh $force $nodeps $@ && return
...@@ -341,7 +345,7 @@ epm_install_files() ...@@ -341,7 +345,7 @@ epm_install_files()
return ;; return ;;
slackpkg) slackpkg)
# FIXME: check for full package name # FIXME: check for full package name
# FIXME: broken status when use batch and default answer # FIXME: broken status when use batch and default answer
__separate_sudocmd_foreach "/sbin/installpkg" "/sbin/upgradepkg" $@ __separate_sudocmd_foreach "/sbin/installpkg" "/sbin/upgradepkg" $@
return ;; return ;;
esac esac
......
...@@ -90,9 +90,9 @@ case $PMTYPE in ...@@ -90,9 +90,9 @@ case $PMTYPE in
conary) conary)
CMD="conary query" CMD="conary query"
;; ;;
# chocolatey) chocolatey)
# CMD="chocolatey list" CMD="chocolatey list"
# ;; ;;
slackpkg) slackpkg)
CMD="ls -1 /var/log/packages/" CMD="ls -1 /var/log/packages/"
if [ -n "$short" ] ; then if [ -n "$short" ] ; then
......
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