From 20b5380556b3221ab6931d5fd124cf2a937672f9 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 1 Aug 2011 18:56:15 +0200 Subject: 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 --git a/scripts/functions b/scripts/functions index ffe5441..199aa57 100644 --- a/scripts/functions +++ b/scripts/functions @@ -556,6 +556,7 @@ CT_GetFile() { 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 -- cgit v0.10.2-6-g49f6