summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Smith <joshsmith@codethink.co.uk>2018-07-24 14:22:51 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-07-27 13:41:26 +0900
commitca224425cfe281b4940fd8f84d50c0ec77cb7fad (patch)
treec63fb4ab1bc61190e7df0780e141ceedfae70659
parent9ebd7fe1182a4d6afa027b88fb3d096408d9a912 (diff)
downloadbuildstream-ca224425cfe281b4940fd8f84d50c0ec77cb7fad.tar.gz
_downloadablefilesource.py: Update network errors to be temporary
This follows the change in 67ecd97a05279a3b7570ad59f05bf0a5973ef04c.
-rw-r--r--buildstream/plugins/sources/_downloadablefilesource.py4
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(),