rpm.py 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # RPM header tags
  2. # Generated with the following command:
  3. # ``grep -Po '(RPMTAG[A-Z_]*)' tools/qvm_template.py | sort | uniq``
  4. RPMTAG_BUILDTIME = 1
  5. RPMTAG_DESCRIPTION = 2
  6. RPMTAG_EPOCHNUM = 3
  7. RPMTAG_LICENSE = 4
  8. RPMTAG_NAME = 5
  9. RPMTAG_RELEASE = 6
  10. RPMTAG_SIGGPG = 7
  11. RPMTAG_SIGPGP = 8
  12. RPMTAG_SUMMARY = 9
  13. RPMTAG_URL = 10
  14. RPMTAG_VERSION = 11
  15. RPMVSF_MASK_NOSIGNATURES = 0xc0c00
  16. class error(BaseException):
  17. def __init__(self, msg):
  18. self.msg = msg
  19. def __str__(self):
  20. return self.msg
  21. class hdr():
  22. def __getitem__(self, key):
  23. pass
  24. class keyring():
  25. def addKey(self, *args):
  26. pass
  27. class pubkey():
  28. pass
  29. class TransactionSet():
  30. def setVSFlags(self, flags):
  31. pass
  32. def setKeyring(self, *args):
  33. pass
  34. def hdrFromFdno(self, fdno) -> hdr:
  35. return hdr()
  36. def labelCompare(a, b):
  37. # Pretend that we're comparing the versions lexographically in the stub
  38. return (a > b) - (a < b)