Commit 5bd913cc authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: print error for extra unallowed args

parent ac3eb590
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
epm_audit() epm_audit()
{ {
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
case $PMTYPE in case $PMTYPE in
pkgng) pkgng)
sudocmd pkg audit -F sudocmd pkg audit -F
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
epm_autoorphans() epm_autoorphans()
{ {
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
case $PMTYPE in case $PMTYPE in
#apt-rpm) #apt-rpm)
# ALT Linux only # ALT Linux only
......
...@@ -37,6 +37,10 @@ __epm_autoremove_altrpm() ...@@ -37,6 +37,10 @@ __epm_autoremove_altrpm()
epm_autoremove() epm_autoremove()
{ {
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
case $PMTYPE in case $PMTYPE in
apt-rpm) apt-rpm)
# ALT Linux only # ALT Linux only
......
...@@ -36,6 +36,10 @@ __remove_deb_apt_cache_file() ...@@ -36,6 +36,10 @@ __remove_deb_apt_cache_file()
epm_clean() epm_clean()
{ {
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
case $PMTYPE in case $PMTYPE in
apt-rpm) apt-rpm)
sudocmd apt-get clean sudocmd apt-get clean
......
...@@ -24,7 +24,7 @@ epm_kernel_update() ...@@ -24,7 +24,7 @@ epm_kernel_update()
case $DISTRNAME in case $DISTRNAME in
ALTLinux) ALTLinux)
assure_exists update-kernel assure_exists update-kernel
sudocmd update-kernel sudocmd update-kernel $pkg_filenames
return ;; return ;;
esac esac
......
...@@ -32,6 +32,8 @@ __repack_rpm_base() ...@@ -32,6 +32,8 @@ __repack_rpm_base()
epm_optimize() epm_optimize()
{ {
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
case $PMTYPE in case $PMTYPE in
*-rpm) *-rpm)
#__repack_rpm_base #__repack_rpm_base
......
...@@ -31,6 +31,9 @@ __fix_apt_sources_list() ...@@ -31,6 +31,9 @@ __fix_apt_sources_list()
epm_repofix() epm_repofix()
{ {
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
case $PMTYPE in case $PMTYPE in
apt-rpm) apt-rpm)
assure_exists apt-repo assure_exists apt-repo
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
epm_update() epm_update()
{ {
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
info "Running command for update remote package repository database" info "Running command for update remote package repository database"
case $PMTYPE in case $PMTYPE in
......
...@@ -23,6 +23,8 @@ epm_upgrade() ...@@ -23,6 +23,8 @@ epm_upgrade()
{ {
local CMD local CMD
[ -z "$pkg_filenames" ] || fatal "No arguments are allowed here"
# it is useful for first time running # it is useful for first time running
update_repo_if_needed update_repo_if_needed
......
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