# HG changeset patch # User "Yann E. MORIN" # Date 1312217775 -7200 # Node ID 2289c546c8e1b0c02b315f5f7ee3b70b16607dae # Parent 99532252143db385a7d0a16a56615fbfbcdcf31a 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" diff -r 99532252143d -r 2289c546c8e1 scripts/functions --- a/scripts/functions Fri Jul 29 15:30:58 2011 +0200 +++ b/scripts/functions Mon Aug 01 18:56:15 2011 +0200 @@ -556,6 +556,7 @@ for ext in ${first_ext} .tar.bz2 .tar.gz .tgz .tar ''; do # Try all urls in turn for url in ${URLS}; do + [ -n "${url}" ] || continue CT_DoLog DEBUG "Trying '${url}/${file}${ext}'" CT_DoGetFile "${url}/${file}${ext}" if [ -f "${CT_TARBALLS_DIR}/${file}${ext}" ]; then