Commit 5192bf9d authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm update: fix getting package list (eterbug #17995)

parent bffd3c9d
...@@ -43,7 +43,7 @@ epm_list_available() ...@@ -43,7 +43,7 @@ epm_list_available()
# use cache we got during epm update # use cache we got during epm update
# TODO: update from this place if obsoleted # TODO: update from this place if obsoleted
if [ -n "$short" ] ; then if [ -n "$short" ] && [ -z "$update" ] ; then
if [ -s $epm_vardir/available-packages ] ; then if [ -s $epm_vardir/available-packages ] ; then
cat $epm_vardir/available-packages cat $epm_vardir/available-packages
return return
......
...@@ -56,7 +56,7 @@ __save_available_packages() ...@@ -56,7 +56,7 @@ __save_available_packages()
info "Retrieving list of all available packages (for autocompletion) ..." info "Retrieving list of all available packages (for autocompletion) ..."
load_helper epm-list_available load_helper epm-list_available
short=--short epm_list_available | sort | sudorun tee $epm_vardir/available-packages >/dev/null short=--short update=update epm_list_available | sort | sudorun tee $epm_vardir/available-packages >/dev/null
} }
__epm_update_content_index() __epm_update_content_index()
......
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