mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 19:31:55 +00:00
Skip piuparts policy if summary file is missing
This commit is contained in:
parent
af7da4e764
commit
883f01740f
@ -758,6 +758,11 @@ class PiupartsPolicy(BasePolicy):
|
||||
|
||||
def _read_piuparts_summary(self, filename, keep_url=True):
|
||||
summary = {}
|
||||
|
||||
if not os.path.exists(filename):
|
||||
self.logger.info("%s missing; skipping piuparts processing" % filename)
|
||||
return summary
|
||||
|
||||
self.logger.info("Loading piuparts report from %s", filename)
|
||||
with open(filename) as fd:
|
||||
if os.fstat(fd.fileno()).st_size < 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user