rpmUtils.oldUtils

rpmUtils.oldUtils.log(num, msg)
rpmUtils.oldUtils.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. if it fails raise URLGrabError(-1)

rpmUtils.oldUtils.checkRpmMD5(package, urlgraberror=0)

take a package, check it out by trying to open it, return 1 if it’s good return 0 if it’s not

rpmUtils.oldUtils.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

rpmUtils.oldUtils.getSigInfo(hdr)

checks if a computerhand back signature information and an error code

rpmUtils.oldUtils.getProvides(header)
rpmUtils.oldUtils.compareEVR((e1, v1, r1), (e2, v2, r2))
rpmUtils.oldUtils.formatRequire(name, version, flags)
rpmUtils.oldUtils.openrpmdb()

GzipFile

class rpmUtils.oldUtils.GzipFile(filename=None, mode=None, compresslevel=9, fileobj=None, mtime=None)

Bases: gzip.GzipFile

RPM_Base_Work

class rpmUtils.oldUtils.RPM_Base_Work

Header_Work

class rpmUtils.oldUtils.Header_Work(header)

Bases: rpmUtils.oldUtils.RPM_Base_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

class rpmUtils.oldUtils.RPM_Work(rpmfn)

Bases: rpmUtils.oldUtils.RPM_Base_Work

Rpm_Ts_Work

class rpmUtils.oldUtils.Rpm_Ts_Work(dbPath='/')

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

match(tag=None, search=None, mire=None)

hands back a list of Header_Work objects

sigChecking(sig)

pass type of check you want to occur, default is to have them off

Table Of Contents

Previous topic

rpmUtils.miscutils

Next topic

rpmUtils.transaction

This Page