Commit 08135716 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use download_url from web module

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