scripts/functions: if no upstream URL is given, silently ignore that
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 01 18:56:15 2011 +0200 (2011-08-01)
changeset 25892289c546c8e1
parent 2588 99532252143d
child 2590 b64cfb67944e
scripts/functions: if no upstream URL is given, silently ignore that

When retrieving tarballs from upstream, if no URL was given, do not
fail; simmply ignore that fact.

This will be used later when the SVN helper will call the standard
helper to try the LAN mirror before trying svn.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/functions
     1.1 --- a/scripts/functions	Fri Jul 29 15:30:58 2011 +0200
     1.2 +++ b/scripts/functions	Mon Aug 01 18:56:15 2011 +0200
     1.3 @@ -556,6 +556,7 @@
     1.4      for ext in ${first_ext} .tar.bz2 .tar.gz .tgz .tar ''; do
     1.5          # Try all urls in turn
     1.6          for url in ${URLS}; do
     1.7 +            [ -n "${url}" ] || continue
     1.8              CT_DoLog DEBUG "Trying '${url}/${file}${ext}'"
     1.9              CT_DoGetFile "${url}/${file}${ext}"
    1.10              if [ -f "${CT_TARBALLS_DIR}/${file}${ext}" ]; then