rpm.py 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. class error(BaseException):
  16. def __init__(self, msg):
  17. self.msg = msg
  18. def __str__(self):
  19. return self.msg
  20. class hdr():
  21. pass
  22. class keyring():
  23. def addKey(self, *args):
  24. pass
  25. class pubkey():
  26. pass
  27. class TransactionSet():
  28. def setKeyring(self, *args):
  29. pass
  30. class transaction():
  31. class TransactionSet():
  32. def setKeyring(self, *args):
  33. pass
  34. def labelCompare(a, b):
  35. # Pretend that we're comparing the versions lexographically in the stub
  36. return (a > b) - (a < b)