compare version strings only using rpm vercmp
Takes a transaction set and a package, check it’s sigs, return 0 if they are all fine return 1 if the gpg key can’t be found return 2 if the header is in someway damaged return 3 if the key is not trusted return 4 if the pkg is not gpg or pgp signed
checks signature from an hdr hand back signature information and/or an error code
return a pkgtuple (n, a, e, v, r) from a hdr object, converts None epoch to 0, as well.
returns true if the package epoch-ver-rel satisfy the range requested in the reqtuple: ex: foo >= 2.1-1
returns true if provtuple satisfies reqtuple
Return a list of the elements in s, but without duplicates.
For example, unique([1,2,3,1,2,3]) is some permutation of [1,2,3], unique(“abcabc”) some permutation of [“a”, “b”, “c”], and unique(([1, 2], [2, 3], [1, 2])) some permutation of [[2, 3], [1, 2]].
For best speed, all sequence elements should be hashable. Then unique() will usually work in linear time.
If not possible, the sequence elements should enjoy a total ordering, and if list(s).sort() doesn’t raise TypeError it’s assumed that they do enjoy a total ordering. Then unique() will usually work in O(N*log2(N)) time.
If that’s not possible either, the sequence elements must support equality-testing. Then unique() will usually work in quadratic time.
Pass in a standard style rpm fullname
Performs roughly the equivalent of rpm2cpio(8). Reads the package from fdno, and dumps the cpio payload to out, using bufsize as the buffer size.
Return a human readable requirement string (ex. foobar >= 2.0) @param name: requirement name (ex. foobar) @param version: requirent version (ex. 2.0) @param flags: binary flags ( 0010 = equal, 0100 = greater than, 1000 = less than )
hand back the rpm header or raise an Error if the pkg is fubar