|
|
@ -626,6 +626,10 @@ class PiupartsPolicy(BasePolicy):
|
|
|
|
|
|
|
|
|
|
|
|
def _read_piuparts_summary(self, filename, keep_url=True):
|
|
|
|
def _read_piuparts_summary(self, filename, keep_url=True):
|
|
|
|
summary = {}
|
|
|
|
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))
|
|
|
|
self.log("Loading piuparts report from {0}".format(filename))
|
|
|
|
with open(filename) as fd:
|
|
|
|
with open(filename) as fd:
|
|
|
|
if os.fstat(fd.fileno()).st_size < 1:
|
|
|
|
if os.fstat(fd.fileno()).st_size < 1:
|
|
|
|