Commit 08135716 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use download_url from web module

parent 2ee73348
......@@ -11,7 +11,7 @@
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
load_mod rpm repl git rpm
load_mod rpm repl git rpm web
# path to ALT Linux's repositories
REPOSITORY="files/SRPMS obsolete orphaned"
......@@ -119,7 +119,7 @@ check_system()
check_name $NAME
if [ "$DOWNLOADALL" ] ; then
for i in $NLIST ; do
wget -c $URL/$i
download_url $URL/$i
done
fi
}
......
......@@ -14,7 +14,7 @@
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
load_mod rpm tarball
load_mod rpm tarball web
WEXT=""
GETSOURCE=""
......@@ -66,7 +66,7 @@ get_archive()
#TODO: check for gz
URL=${GETSOURCE/.tar.bz2/}
[ "$URL" = "$GETSOURCE" ] && URL=${GETSOURCE/.tar/}
get_tarball "$URL.$1" || return
download_url "$URL.$1" || return
WEXT=`basename "$URL"`
test -f "$WEXT.$1" || return
[ "$1" = "tar.bz2" ] || echog -n "Converting to $WEXT.tar..."
......@@ -76,7 +76,7 @@ get_archive1()
{
#TODO: check for gz
URL=${GETSOURCE/.bz2/}
get_tarball "$URL$1" || return
download_url "$URL$1" || return
WEXT=`basename "$URL"`
test -f "$WEXT" || return
echog -n "Converting to $WEXT.bz2..."
......
......@@ -10,12 +10,7 @@
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
load_mod
which xdg-open 2>/dev/null >/dev/null && BROWSER=xdg-open
# (command from perl-libwww)
which GET &>/dev/null && GET=GET || GET=false
load_mod rpm web
#############################
......
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