diff options
author | Josh Smith <joshsmith@codethink.co.uk> | 2018-07-24 14:22:51 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-07-27 13:41:26 +0900 |
commit | ca224425cfe281b4940fd8f84d50c0ec77cb7fad (patch) | |
tree | c63fb4ab1bc61190e7df0780e141ceedfae70659 /buildstream/plugins/sources/_downloadablefilesource.py | |
parent | 9ebd7fe1182a4d6afa027b88fb3d096408d9a912 (diff) | |
download | buildstream-ca224425cfe281b4940fd8f84d50c0ec77cb7fad.tar.gz |
_downloadablefilesource.py: Update network errors to be temporary
This follows the change in 67ecd97a05279a3b7570ad59f05bf0a5973ef04c.
Diffstat (limited to 'buildstream/plugins/sources/_downloadablefilesource.py')
-rw-r--r-- | buildstream/plugins/sources/_downloadablefilesource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/plugins/sources/_downloadablefilesource.py b/buildstream/plugins/sources/_downloadablefilesource.py index ec9c0fbb7..b4c7582fc 100644 --- a/buildstream/plugins/sources/_downloadablefilesource.py +++ b/buildstream/plugins/sources/_downloadablefilesource.py @@ -150,11 +150,11 @@ class DownloadableFileSource(Source): # we would have downloaded. return self.ref raise SourceError("{}: Error mirroring {}: {}" - .format(self, self.url, e)) from e + .format(self, self.url, e), temporary=True) from e except (urllib.error.URLError, urllib.error.ContentTooShortError, OSError) as e: raise SourceError("{}: Error mirroring {}: {}" - .format(self, self.url, e)) from e + .format(self, self.url, e), temporary=True) from e def _get_mirror_dir(self): return os.path.join(self.get_mirror_directory(), |