Commit 6720a80b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm status: add --installable

parent 2da0790a
......@@ -19,6 +19,17 @@
load_helper epm-query
epm_status_installable()
{
local pkg="$1"
#LANG=C epm policy "$pkg" | grep Candidate >/dev/null 2>/dev/null
if [ -n "$verbose" ] ; then
docmd epm install --simulate "$pkg"
else
epm install --simulate "$pkg" 2>/dev/null >/dev/null
fi
}
# check if the package is really package (check accessibility)
epm_status_validate()
{
......@@ -163,6 +174,10 @@ epm_status()
epm_status_validate "$@"
return
;;
--installable)
epm_status_installable "$@"
return
;;
*)
fatal "Unknown option $option, use epm status --help to get info"
;;
......
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