Logo Search packages:      
Sourcecode: yum version File versions  Download package

def yum::YumBase::verifyHeader (   self,
  fo,
  po,
  raiseError 
)

check the header out via it's naevr, internally

Definition at line 620 of file __init__.py.

00620                                               :
        """check the header out via it's naevr, internally"""
        if type(fo) is types.InstanceType:
            fo = fo.filename
            
        try:
            hlist = rpm.readHeaderListFromFile(fo)
            hdr = hlist[0]
        except (rpm.error, IndexError):
            if raiseError:
                raise URLGrabError(-1, 'Header is not complete.')
            else:
                return 0
                
        yip = YumInstalledPackage(hdr) # we're using YumInstalledPackage b/c
                                       # it takes headers <shrug>
        if yip.pkgtup != po.pkgtup:
            if raiseError:
                raise URLGrabError(-1, 'Header does not match intended download')
            else:
                return 0
        
        return 1
        
    def downloadHeader(self, po):


Generated by  Doxygen 1.6.0   Back to index