Commit 4921871d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm list --available: use cached list for --short, don't fallback to package manager with --direct

parent 1839354f
......@@ -41,6 +41,19 @@ epm_list_available()
return
fi
# use cache we got during epm update
# TODO: update from this place if obsoleted
if [ -n "$short" ] ; then
if [ -s $epm_vardir/available-packages ] ; then
cat $epm_vardir/available-packages
return
elif [ -n "$direct" ] ; then
# don't go in long retrieving if --direct is used
return
fi
fi
case $PMTYPE in
apt-*)
warmup_dpkgbase
......
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