Package rpmUtils :: Module oldUtils
[hide private]
[frames] | no frames]

Module oldUtils

source code

Classes [hide private]
  GzipFile
  RPM_Base_Work
  Header_Work
for operating on hdrs in and out of the rpmdb if the first arg is a string then it's a filename otherwise it's an rpm hdr
  RPM_Work
  Rpm_Ts_Work
This should operate on groups of headers/matches/etc in the rpmdb - ideally it will operate with a list of the Base objects above, so I can refer to any one object there not sure the best way to do this yet, more thinking involved
Functions [hide private]
 
log(num, msg) source code
 
errorlog(num, msg) source code
 
_(msg) source code
 
checkheader(headerfile, name, arch)
check a header by opening it and comparing the results to the name and arch we believe it to be for.
source code
 
checkRpmMD5(package, urlgraberror=0)
take a package, check it out by trying to open it, return 1 if its good return 0 if it's not
source code
 
checkSig(package)
take a package, check it's sigs, return 0 if they are all fine, return 1 if the gpg key can't be found, 2 if the header is in someway damaged, 3 if the key is not trusted, 4 if the pkg is not gpg or pgp signed
source code
 
getSigInfo(hdr)
checks if a computerhand back signature information and an error code
source code
 
getProvides(header) source code
 
compareEVR((e1, v1, r1), (e2, v2, r2)) source code
 
formatRequire(name, version, flags) source code
 
openrpmdb() source code
 
_gzipOpen(filename, mode='rb', compresslevel=9) source code
Variables [hide private]
  __package__ = 'rpmUtils'
Function Details [hide private]

checkheader(headerfile, name, arch)

source code 

check a header by opening it and comparing the results to the name and arch we believe it to be for. if it fails raise URLGrabError(-1)