Commit 6c4c68d7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm status --certified: check also vendor list

parent f62bc6ba
...@@ -78,13 +78,20 @@ epm_status_installable() ...@@ -78,13 +78,20 @@ epm_status_installable()
fi fi
} }
# allowed to use scripts
epm_status_certified() epm_status_certified()
{ {
local pkg="$1" local pkg="$1"
load_helper epm-install load_helper epm-install
__epm_package_name_ok_scripts "$pkg" __epm_package_ok_scripts "$pkg" && return
local vendor
vendor="$(epm print field Vendor for "$pkg" 2>/dev/null)"
[ -n "$vendor" ] || return
__epm_vendor_ok_scripts "$vendor" && return
} }
# check if the package is really package (check accessibility) # check if the package is really package (check accessibility)
epm_status_validate() epm_status_validate()
{ {
...@@ -219,7 +226,7 @@ epm_status() ...@@ -219,7 +226,7 @@ epm_status()
epm_status_original "$@" epm_status_original "$@"
return return
;; ;;
--certified) --certified|--allowed-scripts)
epm_status_certified "$@" epm_status_certified "$@"
return return
;; ;;
......
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