Commit 4cdf5994 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm assure: use command name as package name by default

parent e9c69d70
......@@ -198,7 +198,7 @@ check_command()
programs) # HELPCMD: print list of installed GUI program(s)
epm_cmd=programs
;;
assure) # HELPCMD: <command> <package>: install package if command does not exists
assure) # HELPCMD: <command> [package]: install package if command does not exists
epm_cmd=assure
;;
......
......@@ -44,10 +44,13 @@ __epm_assure()
# TODO: use package name normalization
echo "Install appropriate package for $1 command..."
local PACKAGE="$2"
[ -n "$PACKAGE" ] || PACKAGE="$1"
#epm install $2
# copied from epm_install
local names="$(echo $2 | filter_out_installed_packages)"
local names="$(echo "$PACKAGE" | filter_out_installed_packages)"
non_interactive=1 epm_install_names $names
}
......
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