2020-09-03 19:56:15 +02:00
|
|
|
# RPM header tags
|
|
|
|
# Generated with the following command:
|
|
|
|
# ``grep -Po '(RPMTAG[A-Z_]*)' tools/qvm_template.py | sort | uniq``
|
|
|
|
RPMTAG_BUILDTIME = 1
|
|
|
|
RPMTAG_DESCRIPTION = 2
|
|
|
|
RPMTAG_EPOCHNUM = 3
|
|
|
|
RPMTAG_LICENSE = 4
|
|
|
|
RPMTAG_NAME = 5
|
|
|
|
RPMTAG_RELEASE = 6
|
|
|
|
RPMTAG_SIGGPG = 7
|
|
|
|
RPMTAG_SIGPGP = 8
|
|
|
|
RPMTAG_SUMMARY = 9
|
|
|
|
RPMTAG_URL = 10
|
|
|
|
RPMTAG_VERSION = 11
|
|
|
|
|
2021-01-29 22:47:38 +01:00
|
|
|
RPMVSF_MASK_NOSIGNATURES = 0xc0c00
|
|
|
|
|
2020-09-03 19:56:15 +02:00
|
|
|
class error(BaseException):
|
|
|
|
def __init__(self, msg):
|
|
|
|
self.msg = msg
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return self.msg
|
|
|
|
|
|
|
|
class hdr():
|
2021-01-29 22:47:38 +01:00
|
|
|
def __getitem__(self, key):
|
|
|
|
pass
|
2020-09-03 19:56:15 +02:00
|
|
|
|
|
|
|
class keyring():
|
|
|
|
def addKey(self, *args):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class pubkey():
|
|
|
|
pass
|
|
|
|
|
|
|
|
class TransactionSet():
|
2021-01-29 22:47:38 +01:00
|
|
|
def setVSFlags(self, flags):
|
|
|
|
pass
|
2020-09-03 19:56:15 +02:00
|
|
|
def setKeyring(self, *args):
|
|
|
|
pass
|
2021-01-29 22:47:38 +01:00
|
|
|
def hdrFromFdno(self, fdno) -> hdr:
|
|
|
|
return hdr()
|
2020-09-03 19:56:15 +02:00
|
|
|
|
|
|
|
def labelCompare(a, b):
|
|
|
|
# Pretend that we're comparing the versions lexographically in the stub
|
|
|
|
return (a > b) - (a < b)
|