Commit 31a18e6a authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent 42493910
...@@ -19,11 +19,17 @@ ...@@ -19,11 +19,17 @@
__use_url_install() __use_url_install()
{ {
case $PMTYPE in case $DISTRNAME in
apt-rpm) "ALTLinux")
# ALT Linux really?
pkg_names="$pkg_names $pkg_urls" pkg_names="$pkg_names $pkg_urls"
return 0
;; ;;
esac
case $PMTYPE in
#apt-rpm)
# pkg_names="$pkg_names $pkg_urls"
# ;;
#deepsolver-rpm) #deepsolver-rpm)
# pkg_names="$pkg_names $pkg_urls" # pkg_names="$pkg_names $pkg_urls"
# ;; # ;;
...@@ -54,7 +60,7 @@ __download_pkg_urls() ...@@ -54,7 +60,7 @@ __download_pkg_urls()
for url in $pkg_urls ; do for url in $pkg_urls ; do
# TODO: use some individual tmp dir # TODO: use some individual tmp dir
local new_file=/tmp/$(basename "$url") local new_file=/tmp/$(basename "$url")
if eget -O $new_file $url && [ -s "$new_file" ] ; then if docmd eget -O $new_file $url && [ -s "$new_file" ] ; then
pkg_files="$pkg_files $new_file" pkg_files="$pkg_files $new_file"
to_remove_pkg_files="$to_remove_pkg_files $new_file" to_remove_pkg_files="$to_remove_pkg_files $new_file"
else else
...@@ -70,8 +76,8 @@ __handle_pkg_urls_to_install() ...@@ -70,8 +76,8 @@ __handle_pkg_urls_to_install()
# TODO: do it correctly # TODO: do it correctly
to_remove_pkg_files= to_remove_pkg_files=
# FIXME: check type of pkg_urls separately?
if [ "$(get_package_type "$pkg")" != $PKGFORMAT ] || ! __use_url_install ; then if [ "$(get_package_type "$pkg_urls")" != $PKGFORMAT ] || ! __use_url_install ; then
# use workaround with eget: download and put in pkg_files # use workaround with eget: download and put in pkg_files
__download_pkg_urls __download_pkg_urls
fi fi
......
...@@ -22,6 +22,7 @@ __alt_local_content_search() ...@@ -22,6 +22,7 @@ __alt_local_content_search()
load_helper epm-sh-altlinux load_helper epm-sh-altlinux
local CI="$(get_local_alt_contents_index)" local CI="$(get_local_alt_contents_index)"
# TODO use something like
[ -n "$CI" ] || fatal "Have no local contents index" [ -n "$CI" ] || fatal "Have no local contents index"
#local OUTCMD="less" #local OUTCMD="less"
#[ -n "$USETTY" ] || OUTCMD="cat" #[ -n "$USETTY" ] || OUTCMD="cat"
......
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