Commit bd3ec954 by Matthias Putz

Fix: if clone bundle download fails because of url error, try normal fetch

parent e58d9922
...@@ -21,7 +21,7 @@ REPO_REV = 'stable' ...@@ -21,7 +21,7 @@ REPO_REV = 'stable'
# limitations under the License. # limitations under the License.
# increment this whenever we make important changes to this script # increment this whenever we make important changes to this script
VERSION = (1, 22) VERSION = (1, 23)
# increment this if the MAINTAINER_KEYS block is modified # increment this if the MAINTAINER_KEYS block is modified
KEYRING_VERSION = (1, 2) KEYRING_VERSION = (1, 2)
...@@ -500,7 +500,8 @@ def _DownloadBundle(url, local, quiet): ...@@ -500,7 +500,8 @@ def _DownloadBundle(url, local, quiet):
except urllib.error.URLError as e: except urllib.error.URLError as e:
_print('fatal: Cannot get %s' % url, file=sys.stderr) _print('fatal: Cannot get %s' % url, file=sys.stderr)
_print('fatal: error %s' % e.reason, file=sys.stderr) _print('fatal: error %s' % e.reason, file=sys.stderr)
raise CloneFailure() # raise CloneFailure()
return False
try: try:
if not quiet: if not quiet:
_print('Get %s' % url, file=sys.stderr) _print('Get %s' % url, file=sys.stderr)
......
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