示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def __init__(self, deb_file):
     AbstractPackageFile.__init__(self, deb_file)
     self.package = DebPackage(deb_file, CACHE)
     self.package.check()