Lines Matching refs:p5p
25 import pkg.p5p
57 """An exception thrown when a client requests a path within a p5p file
78 """An exception thrown when the p5p file referred to by the
84 return "Missing p5p archive: {0}".format(self.path)
88 """An object to handle a request for p5p file contents from the
95 self.p5p = None
102 if self.p5p:
103 self.p5p.close()
122 file we create per p5p archive, and the p5p archive itself."""
135 # replace the p5p file on the server after this method has been
137 # 500 response at worst (as the p5p index used by this web
175 return self.p5p.get_package_file(os.path.basename(path),
177 except pkg.p5p.UnknownArchiveFiles as e:
204 self.p5p.extract_catalog1(cat_part, cat_dir,
207 except (pkg.p5p.UnknownArchiveFiles, IOError) as e:
228 mf = self.p5p.get_package_manifest(fmri, raw=True)
230 except pkg.p5p.UnknownPackageManifest as e:
249 self.p5p.extract_catalog1("catalog.attrs", cat_dir,
255 self.p5p.extract_catalog1(part, cat_dir,
258 except pkg.p5p.UnknownArchiveFiles as e:
302 <publisher> the name of the publisher from the p5p file
303 <hash> the sha1 hash of the location of the p5p file
313 <hash>, which maps the sha1 hash of the p5p archive path, to the
327 # In order to keep only one copy of the p5p index in
329 # we're opening the same p5p file. Before doing
330 # so, we need to ensure the p5p file hasn't been
336 self.p5p = pkg.p5p.Archive(
339 self.p5p.get_index()
346 self.p5p = pkg.p5p.Archive(self.p5p_path,
441 "de5acae11333890c457665379eec812a67f78dd3=/tmp/archive.p5p"
442 print("usage: sysrepo_p5p <query> <hash>=<path to p5p file>")