Debian package metadata parser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constant.go 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package dpkg
  2. // dpkg deptype
  3. const (
  4. DependancySuggests = iota
  5. DependancyRecommends
  6. DependancyDepends
  7. DependancyPreDepends
  8. DependancyBreaks
  9. DependancyConflicts
  10. DependancyProvides
  11. DependancyReplaces
  12. DependancyEnhances
  13. )
  14. // dpkg pkgpriority
  15. const (
  16. PriorityRequired = iota
  17. PriorityImportant
  18. PriorityStandard
  19. PriorityOptional
  20. PriorityExtra
  21. PriorityOther
  22. PriorityUnknown
  23. PriorityUnset = -1
  24. )
  25. // dpkg pkgstatus
  26. const (
  27. StatusNotInstalled = iota
  28. StatusConfigFiles
  29. StatusHalfInstalled
  30. StatusUnpacked
  31. StatusHalfConfigured
  32. StatusTriggersAwaited
  33. StatusTriggersPending
  34. StatusInstalled
  35. )
  36. // dpkg pkgwant
  37. const (
  38. WantUnknown = iota
  39. WantInstall
  40. WantHold
  41. WantDeinstall
  42. WantPurge
  43. )
  44. // dpkg depverrel
  45. const (
  46. Earlier = 0001
  47. Later = 0002
  48. Strict = 0010
  49. OrEqual = 0020
  50. BuiltUp = 0100
  51. None = 0200
  52. EarlierEqual = BuiltUp | Earlier | OrEqual
  53. EarlierStrict = BuiltUp | Earlier | Strict
  54. LaterEqual = BuiltUp | Later | OrEqual
  55. LaterStrict = BuiltUp | Later | Strict
  56. Exact = 0400
  57. )