def __init__(self, rpm_file): AbstractPackageFile.__init__(self, rpm_file) self.header = None fdno = os.open(rpm_file, os.O_RDONLY) try: self.header = _TS.hdrFromFdno(fdno) except rpm.error as _: pass finally: os.close(fdno)
def __init__(self, deb_file): AbstractPackageFile.__init__(self, deb_file) self.package = DebPackage(deb_file, CACHE) self.package.check()