def parse_file(self, tlpdb): self.cfg = config.Config( plist=os.path.join(DIRPATH, "PLIST-errors"), tlpdb=os.path.join(DIRPATH, tlpdb + ".tlpdb"), arch="amd64-linux", dirs=False ) if os.path.exists(self.cfg.sqldb): os.unlink(self.cfg.sqldb) self.sess = orm.init_orm(self.cfg)
def collect_files(specs, regex=None): cfg = config.Config( TLPDB, inc_pkgspecs=specs, plist=None, # return file list prefix_filenames="share/", dirs=False, # Do this manually as we will filter the list regex=regex, ) sess = orm.init_orm(cfg) files = subset.compute_subset(cfg, sess) sess.close() files = relocate_mans_and_infos(files) files = filter_junk(files) return sorted(files)