Commit 52c42443 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add local CMD where use it, fix indents

parent 33e352f7
...@@ -25,6 +25,7 @@ check_rpm_integrity() ...@@ -25,6 +25,7 @@ check_rpm_integrity()
check_deb_integrity() check_deb_integrity()
{ {
# FIXME: debsums -ca package ?
a= dpkg --contents $@ >/dev/null a= dpkg --contents $@ >/dev/null
} }
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
epm_packages() epm_packages()
{ {
local CMD
case $PMTYPE in case $PMTYPE in
apt-rpm) apt-rpm)
......
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
epm_requires() epm_requires()
{ {
[ -n "$pkg_filenames" ] || fatal "Run query without names" local CMD
[ -n "$pkg_filenames" ] || fatal "Run query without names"
# by file package # by file package
case $PMTYPE in case $PMTYPE in
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
epm_search() epm_search()
{ {
[ -n "$pkg_filenames" ] || fatal "Run search without names" local CMD
[ -n "$pkg_filenames" ] || fatal "Run search without names"
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
...@@ -56,6 +57,8 @@ case $PMTYPE in ...@@ -56,6 +57,8 @@ case $PMTYPE in
CMD="chocolatey list" CMD="chocolatey list"
;; ;;
slackpkg) slackpkg)
# FIXME
echo "FIXME: need case insensitive search"
docmd_foreach "/usr/sbin/slackpkg search" $pkg_filenames docmd_foreach "/usr/sbin/slackpkg search" $pkg_filenames
return return
;; ;;
......
...@@ -43,7 +43,8 @@ local_content_search() ...@@ -43,7 +43,8 @@ local_content_search()
epm_search_file() epm_search_file()
{ {
[ -n "$pkg_filenames" ] || fatal "Run search without names" local CMD
[ -n "$pkg_filenames" ] || fatal "Run search without names"
case $PMTYPE in case $PMTYPE in
apt-rpm) apt-rpm)
......
...@@ -23,8 +23,9 @@ load_helper epm-search ...@@ -23,8 +23,9 @@ load_helper epm-search
_epm_do_simulate() _epm_do_simulate()
{ {
local CMD local CMD
local filenames=$@ local filenames=$@
case $PMTYPE in case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
CMD="apt-get --simulate install" CMD="apt-get --simulate install"
......
...@@ -20,8 +20,10 @@ ...@@ -20,8 +20,10 @@
epm_upgrade() epm_upgrade()
{ {
echo "Run command for upgrade packages" local CMD
case $PMTYPE in echo "Run command for upgrade packages"
case $PMTYPE in
apt-rpm|apt-dpkg) apt-rpm|apt-dpkg)
# FIXME: apt-get update before # FIXME: apt-get update before
CMD="apt-get dist-upgrade" CMD="apt-get dist-upgrade"
...@@ -54,7 +56,7 @@ epm_upgrade() ...@@ -54,7 +56,7 @@ epm_upgrade()
*) *)
fatal "Do not known command for $PMTYPE" fatal "Do not known command for $PMTYPE"
;; ;;
esac esac
sudocmd $CMD $pkg_filenames sudocmd $CMD $pkg_filenames
} }
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