mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 03:41:12 +00:00
Skip piuparts policy if summary file is missing
This commit is contained in:
parent
c26dfad9c2
commit
e93d8ae221
@ -626,6 +626,10 @@ class PiupartsPolicy(BasePolicy):
|
||||
|
||||
def _read_piuparts_summary(self, filename, keep_url=True):
|
||||
summary = {}
|
||||
if not os.path.exists(filename):
|
||||
self.log("%s missing; skipping piuparts processing" % filename)
|
||||
return summary
|
||||
|
||||
self.log("Loading piuparts report from {0}".format(filename))
|
||||
with open(filename) as fd:
|
||||
if os.fstat(fd.fileno()).st_size < 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user