Commit 5958b314 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-query: realize is_installed via internal function (for pkg names only), speed optimize

parent fe52b727
......@@ -159,8 +159,9 @@ __epm_query_name()
# check if pkg is installed
is_installed()
{
#pkg_filenames="$@" epm_query >/dev/null
epm installed $@ >/dev/null 2>/dev/null
pkg_filenames="$@" pkg_names="$@" epm_query >/dev/null 2>/dev/null
# broken way to recursive call here (overhead!)
#epm installed $@ >/dev/null 2>/dev/null
}
# fill pkg_installed and pkg_noninstalled
......
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