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