Commit 557efb51 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm info: add URL support

parent 92ee6947
...@@ -33,6 +33,12 @@ __epm_info_rpm_low() ...@@ -33,6 +33,12 @@ __epm_info_rpm_low()
epm_info() epm_info()
{ {
# if possible, it will put pkg_urls into pkg_files or pkg_names
if [ -n "$pkg_urls" ] ; then
load_helper epm-download
__handle_pkg_urls_to_checking
fi
[ -n "$pkg_filenames" ] || fatal "Info: missing package(s) name" [ -n "$pkg_filenames" ] || fatal "Info: missing package(s) name"
case $PMTYPE in case $PMTYPE in
...@@ -117,4 +123,10 @@ case $PMTYPE in ...@@ -117,4 +123,10 @@ case $PMTYPE in
;; ;;
esac esac
local RETVAL=$?
# TODO: reinvent
[ -n "$to_remove_pkg_files" ] && rm -fv $to_remove_pkg_files
return $RETVAL
} }
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