patchman 4.0.19__tar.gz → 4.0.20__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. {patchman-4.0.19 → patchman-4.0.20}/PKG-INFO +1 -1
  2. patchman-4.0.20/VERSION.txt +1 -0
  3. patchman-4.0.20/errata/migrations/0010_synopsis_textfield.py +18 -0
  4. {patchman-4.0.19 → patchman-4.0.20}/errata/models.py +1 -1
  5. patchman-4.0.20/hosts/migrations/0013_alter_hostrepo_unique_together_and_more.py +21 -0
  6. {patchman-4.0.19 → patchman-4.0.20}/hosts/models.py +6 -1
  7. patchman-4.0.20/modules/migrations/0007_alter_module_unique_together_module_unique_module.py +21 -0
  8. {patchman-4.0.19 → patchman-4.0.20}/modules/models.py +6 -1
  9. patchman-4.0.20/operatingsystems/migrations/0012_alter_osrelease_unique_together_and_more.py +21 -0
  10. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/models.py +6 -1
  11. patchman-4.0.20/packages/migrations/0008_alter_package_unique_together_and_more.py +29 -0
  12. {patchman-4.0.19 → patchman-4.0.20}/packages/models.py +12 -2
  13. {patchman-4.0.19 → patchman-4.0.20}/patchman/settings.py +0 -1
  14. {patchman-4.0.19 → patchman-4.0.20}/patchman/urls.py +1 -2
  15. {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/PKG-INFO +1 -1
  16. {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/SOURCES.txt +6 -0
  17. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_parsing.py +31 -31
  18. {patchman-4.0.19 → patchman-4.0.20}/reports/utils.py +13 -7
  19. {patchman-4.0.19 → patchman-4.0.20}/reports/views.py +3 -3
  20. {patchman-4.0.19 → patchman-4.0.20}/repos/utils.py +3 -0
  21. patchman-4.0.20/security/migrations/0011_alter_cvss_unique_together_and_more.py +29 -0
  22. {patchman-4.0.19 → patchman-4.0.20}/security/models.py +12 -2
  23. {patchman-4.0.19 → patchman-4.0.20}/security/tests/test_models.py +2 -4
  24. {patchman-4.0.19 → patchman-4.0.20}/util/__init__.py +18 -9
  25. {patchman-4.0.19 → patchman-4.0.20}/util/context_processors.py +4 -4
  26. {patchman-4.0.19 → patchman-4.0.20}/util/filterspecs.py +2 -1
  27. patchman-4.0.19/VERSION.txt +0 -1
  28. {patchman-4.0.19 → patchman-4.0.20}/AUTHORS +0 -0
  29. {patchman-4.0.19 → patchman-4.0.20}/COPYING +0 -0
  30. {patchman-4.0.19 → patchman-4.0.20}/INSTALL.md +0 -0
  31. {patchman-4.0.19 → patchman-4.0.20}/MANIFEST.in +0 -0
  32. {patchman-4.0.19 → patchman-4.0.20}/README.md +0 -0
  33. {patchman-4.0.19 → patchman-4.0.20}/arch/__init__.py +0 -0
  34. {patchman-4.0.19 → patchman-4.0.20}/arch/admin.py +0 -0
  35. {patchman-4.0.19 → patchman-4.0.20}/arch/apps.py +0 -0
  36. {patchman-4.0.19 → patchman-4.0.20}/arch/migrations/0001_initial.py +0 -0
  37. {patchman-4.0.19 → patchman-4.0.20}/arch/migrations/0002_alter_machinearchitecture_options_and_more.py +0 -0
  38. {patchman-4.0.19 → patchman-4.0.20}/arch/migrations/__init__.py +0 -0
  39. {patchman-4.0.19 → patchman-4.0.20}/arch/models.py +0 -0
  40. {patchman-4.0.19 → patchman-4.0.20}/arch/serializers.py +0 -0
  41. {patchman-4.0.19 → patchman-4.0.20}/arch/tests/__init__.py +0 -0
  42. {patchman-4.0.19 → patchman-4.0.20}/arch/tests/test_api.py +0 -0
  43. {patchman-4.0.19 → patchman-4.0.20}/arch/tests/test_models.py +0 -0
  44. {patchman-4.0.19 → patchman-4.0.20}/arch/utils.py +0 -0
  45. {patchman-4.0.19 → patchman-4.0.20}/arch/views.py +0 -0
  46. {patchman-4.0.19 → patchman-4.0.20}/domains/__init__.py +0 -0
  47. {patchman-4.0.19 → patchman-4.0.20}/domains/admin.py +0 -0
  48. {patchman-4.0.19 → patchman-4.0.20}/domains/apps.py +0 -0
  49. {patchman-4.0.19 → patchman-4.0.20}/domains/migrations/0001_initial.py +0 -0
  50. {patchman-4.0.19 → patchman-4.0.20}/domains/migrations/0002_alter_domain_options.py +0 -0
  51. {patchman-4.0.19 → patchman-4.0.20}/domains/migrations/__init__.py +0 -0
  52. {patchman-4.0.19 → patchman-4.0.20}/domains/models.py +0 -0
  53. {patchman-4.0.19 → patchman-4.0.20}/domains/serializers.py +0 -0
  54. {patchman-4.0.19 → patchman-4.0.20}/domains/tests/__init__.py +0 -0
  55. {patchman-4.0.19 → patchman-4.0.20}/domains/tests/test_api.py +0 -0
  56. {patchman-4.0.19 → patchman-4.0.20}/domains/tests/test_models.py +0 -0
  57. {patchman-4.0.19 → patchman-4.0.20}/domains/views.py +0 -0
  58. {patchman-4.0.19 → patchman-4.0.20}/errata/__init__.py +0 -0
  59. {patchman-4.0.19 → patchman-4.0.20}/errata/admin.py +0 -0
  60. {patchman-4.0.19 → patchman-4.0.20}/errata/apps.py +0 -0
  61. {patchman-4.0.19 → patchman-4.0.20}/errata/managers.py +0 -0
  62. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0001_initial.py +0 -0
  63. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0002_alter_erratumreference_unique_together.py +0 -0
  64. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0003_delete_erratumreference_alter_erratum_references.py +0 -0
  65. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0004_rename_packages_erratum_fixed_packages.py +0 -0
  66. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0005_erratum_affected_packages_and_more.py +0 -0
  67. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0006_alter_erratum_options.py +0 -0
  68. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0007_alter_erratum_fixed_packages.py +0 -0
  69. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0008_add_cached_count_fields.py +0 -0
  70. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0009_backfill_cached_counts.py +0 -0
  71. {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/__init__.py +0 -0
  72. {patchman-4.0.19 → patchman-4.0.20}/errata/serializers.py +0 -0
  73. {patchman-4.0.19 → patchman-4.0.20}/errata/signals.py +0 -0
  74. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/__init__.py +0 -0
  75. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/__init__.py +0 -0
  76. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/alma.py +0 -0
  77. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/arch.py +0 -0
  78. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/centos.py +0 -0
  79. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/debian.py +0 -0
  80. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/rocky.py +0 -0
  81. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/ubuntu.py +0 -0
  82. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/repos/__init__.py +0 -0
  83. {patchman-4.0.19 → patchman-4.0.20}/errata/sources/repos/yum.py +0 -0
  84. {patchman-4.0.19 → patchman-4.0.20}/errata/tables.py +0 -0
  85. {patchman-4.0.19 → patchman-4.0.20}/errata/tasks.py +0 -0
  86. {patchman-4.0.19 → patchman-4.0.20}/errata/templates/errata/erratum_detail.html +0 -0
  87. {patchman-4.0.19 → patchman-4.0.20}/errata/templates/errata/erratum_list.html +0 -0
  88. {patchman-4.0.19 → patchman-4.0.20}/errata/tests/__init__.py +0 -0
  89. {patchman-4.0.19 → patchman-4.0.20}/errata/tests/test_api.py +0 -0
  90. {patchman-4.0.19 → patchman-4.0.20}/errata/tests/test_integration.py +0 -0
  91. {patchman-4.0.19 → patchman-4.0.20}/errata/tests/test_models.py +0 -0
  92. {patchman-4.0.19 → patchman-4.0.20}/errata/urls.py +0 -0
  93. {patchman-4.0.19 → patchman-4.0.20}/errata/utils.py +0 -0
  94. {patchman-4.0.19 → patchman-4.0.20}/errata/views.py +0 -0
  95. {patchman-4.0.19 → patchman-4.0.20}/etc/patchman/apache.conf.example +0 -0
  96. {patchman-4.0.19 → patchman-4.0.20}/etc/patchman/celery.conf +0 -0
  97. {patchman-4.0.19 → patchman-4.0.20}/etc/patchman/local_settings.py +0 -0
  98. {patchman-4.0.19 → patchman-4.0.20}/etc/systemd/system/patchman-celery-beat.service +0 -0
  99. {patchman-4.0.19 → patchman-4.0.20}/etc/systemd/system/patchman-celery-worker@.service +0 -0
  100. {patchman-4.0.19 → patchman-4.0.20}/hosts/__init__.py +0 -0
  101. {patchman-4.0.19 → patchman-4.0.20}/hosts/admin.py +0 -0
  102. {patchman-4.0.19 → patchman-4.0.20}/hosts/apps.py +0 -0
  103. {patchman-4.0.19 → patchman-4.0.20}/hosts/forms.py +0 -0
  104. {patchman-4.0.19 → patchman-4.0.20}/hosts/managers.py +0 -0
  105. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0001_initial.py +0 -0
  106. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0002_initial.py +0 -0
  107. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0003_host_modules.py +0 -0
  108. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0004_remove_host_tags_host_tags.py +0 -0
  109. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0005_rename_os_host_osvariant.py +0 -0
  110. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0006_migrate_to_tz_aware.py +0 -0
  111. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0007_alter_host_tags.py +0 -0
  112. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0008_alter_host_options.py +0 -0
  113. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0009_host_errata.py +0 -0
  114. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0010_alter_hostrepo_options.py +0 -0
  115. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0011_host_bug_updates_count_host_errata_count_and_more.py +0 -0
  116. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0012_backfill_cached_counts.py +0 -0
  117. {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/__init__.py +0 -0
  118. {patchman-4.0.19 → patchman-4.0.20}/hosts/serializers.py +0 -0
  119. {patchman-4.0.19 → patchman-4.0.20}/hosts/signals.py +0 -0
  120. {patchman-4.0.19 → patchman-4.0.20}/hosts/tables.py +0 -0
  121. {patchman-4.0.19 → patchman-4.0.20}/hosts/tasks.py +0 -0
  122. {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_delete.html +0 -0
  123. {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_detail.html +0 -0
  124. {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_edit.html +0 -0
  125. {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_list.html +0 -0
  126. {patchman-4.0.19 → patchman-4.0.20}/hosts/templatetags/__init__.py +0 -0
  127. {patchman-4.0.19 → patchman-4.0.20}/hosts/templatetags/report_alert.py +0 -0
  128. {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/__init__.py +0 -0
  129. {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_api.py +0 -0
  130. {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_find_updates.py +0 -0
  131. {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_managers.py +0 -0
  132. {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_models.py +0 -0
  133. {patchman-4.0.19 → patchman-4.0.20}/hosts/urls.py +0 -0
  134. {patchman-4.0.19 → patchman-4.0.20}/hosts/utils.py +0 -0
  135. {patchman-4.0.19 → patchman-4.0.20}/hosts/views.py +0 -0
  136. {patchman-4.0.19 → patchman-4.0.20}/modules/__init__.py +0 -0
  137. {patchman-4.0.19 → patchman-4.0.20}/modules/admin.py +0 -0
  138. {patchman-4.0.19 → patchman-4.0.20}/modules/apps.py +0 -0
  139. {patchman-4.0.19 → patchman-4.0.20}/modules/managers.py +0 -0
  140. {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0001_initial.py +0 -0
  141. {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0002_auto_20240204_2214.py +0 -0
  142. {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0003_alter_module_options.py +0 -0
  143. {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0004_alter_module_options.py +0 -0
  144. {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0005_alter_module_unique_together.py +0 -0
  145. {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0006_alter_module_context_alter_module_name_and_more.py +0 -0
  146. {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/__init__.py +0 -0
  147. {patchman-4.0.19 → patchman-4.0.20}/modules/serializers.py +0 -0
  148. {patchman-4.0.19 → patchman-4.0.20}/modules/tables.py +0 -0
  149. {patchman-4.0.19 → patchman-4.0.20}/modules/templates/modules/module_detail.html +0 -0
  150. {patchman-4.0.19 → patchman-4.0.20}/modules/templates/modules/module_list.html +0 -0
  151. {patchman-4.0.19 → patchman-4.0.20}/modules/urls.py +0 -0
  152. {patchman-4.0.19 → patchman-4.0.20}/modules/utils.py +0 -0
  153. {patchman-4.0.19 → patchman-4.0.20}/modules/views.py +0 -0
  154. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/__init__.py +0 -0
  155. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/admin.py +0 -0
  156. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/apps.py +0 -0
  157. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/fixtures/os.json +0 -0
  158. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/fixtures/osgroup.json +0 -0
  159. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/forms.py +0 -0
  160. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/managers.py +0 -0
  161. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0001_initial.py +0 -0
  162. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0002_initial.py +0 -0
  163. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0003_os_arch.py +0 -0
  164. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0003_osgroup_codename.py +0 -0
  165. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0004_alter_osgroup_unique_together.py +0 -0
  166. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0005_rename_osgroup_osrelease_rename_os_osvariant_and_more.py +0 -0
  167. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0006_osrelease_cpe_name_osvariant_codename.py +0 -0
  168. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0007_alter_osrelease_unique_together.py +0 -0
  169. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0008_alter_osrelease_options_alter_osvariant_options.py +0 -0
  170. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0009_osvariant_hosts_count.py +0 -0
  171. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0010_backfill_osvariant_counts.py +0 -0
  172. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.py +0 -0
  173. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/__init__.py +0 -0
  174. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/serializers.py +0 -0
  175. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/signals.py +0 -0
  176. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tables.py +0 -0
  177. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/os_landing.html +0 -0
  178. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osrelease_delete.html +0 -0
  179. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osrelease_detail.html +0 -0
  180. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osrelease_list.html +0 -0
  181. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_delete.html +0 -0
  182. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_delete_multiple.html +0 -0
  183. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_detail.html +0 -0
  184. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_list.html +0 -0
  185. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tests/__init__.py +0 -0
  186. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tests/test_api.py +0 -0
  187. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tests/test_models.py +0 -0
  188. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/urls.py +0 -0
  189. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/utils.py +0 -0
  190. {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/views.py +0 -0
  191. {patchman-4.0.19 → patchman-4.0.20}/packages/__init__.py +0 -0
  192. {patchman-4.0.19 → patchman-4.0.20}/packages/admin.py +0 -0
  193. {patchman-4.0.19 → patchman-4.0.20}/packages/apps.py +0 -0
  194. {patchman-4.0.19 → patchman-4.0.20}/packages/managers.py +0 -0
  195. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0001_initial.py +0 -0
  196. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0002_auto_20250207_1319.py +0 -0
  197. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0002_delete_erratum_delete_erratumreference.py +0 -0
  198. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0003_auto_20250207_1746.py +0 -0
  199. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0004_alter_package_options_alter_packagecategory_options_and_more.py +0 -0
  200. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0005_alter_package_packagetype.py +0 -0
  201. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0006_alter_packageupdate_options.py +0 -0
  202. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0007_alter_package_epoch_alter_package_release_and_more.py +0 -0
  203. {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/__init__.py +0 -0
  204. {patchman-4.0.19 → patchman-4.0.20}/packages/serializers.py +0 -0
  205. {patchman-4.0.19 → patchman-4.0.20}/packages/tables.py +0 -0
  206. {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_detail.html +0 -0
  207. {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_list.html +0 -0
  208. {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_name_detail.html +0 -0
  209. {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_name_list.html +0 -0
  210. {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_update_list.html +0 -0
  211. {patchman-4.0.19 → patchman-4.0.20}/packages/tests/__init__.py +0 -0
  212. {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_api.py +0 -0
  213. {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_models.py +0 -0
  214. {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_version_compare.py +0 -0
  215. {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_views.py +0 -0
  216. {patchman-4.0.19 → patchman-4.0.20}/packages/urls.py +0 -0
  217. {patchman-4.0.19 → patchman-4.0.20}/packages/utils.py +0 -0
  218. {patchman-4.0.19 → patchman-4.0.20}/packages/views.py +0 -0
  219. {patchman-4.0.19 → patchman-4.0.20}/patchman/__init__.py +0 -0
  220. {patchman-4.0.19 → patchman-4.0.20}/patchman/celery.py +0 -0
  221. {patchman-4.0.19 → patchman-4.0.20}/patchman/receivers.py +0 -0
  222. {patchman-4.0.19 → patchman-4.0.20}/patchman/signals.py +0 -0
  223. {patchman-4.0.19 → patchman-4.0.20}/patchman/sqlite3/base.py +0 -0
  224. {patchman-4.0.19 → patchman-4.0.20}/patchman/static/css/base.css +0 -0
  225. {patchman-4.0.19 → patchman-4.0.20}/patchman/static/js/expandable-text.js +0 -0
  226. {patchman-4.0.19 → patchman-4.0.20}/patchman/static/js/sidebar.js +0 -0
  227. {patchman-4.0.19 → patchman-4.0.20}/patchman/wsgi.py +0 -0
  228. {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/dependency_links.txt +0 -0
  229. {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/requires.txt +0 -0
  230. {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/top_level.txt +0 -0
  231. {patchman-4.0.19 → patchman-4.0.20}/reports/__init__.py +0 -0
  232. {patchman-4.0.19 → patchman-4.0.20}/reports/admin.py +0 -0
  233. {patchman-4.0.19 → patchman-4.0.20}/reports/apps.py +0 -0
  234. {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0001_initial.py +0 -0
  235. {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0002_report_modules.py +0 -0
  236. {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0003_remove_report_accessed.py +0 -0
  237. {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0004_migrate_to_tz_aware.py +0 -0
  238. {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0005_alter_report_options.py +0 -0
  239. {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/__init__.py +0 -0
  240. {patchman-4.0.19 → patchman-4.0.20}/reports/models.py +0 -0
  241. {patchman-4.0.19 → patchman-4.0.20}/reports/serializers.py +0 -0
  242. {patchman-4.0.19 → patchman-4.0.20}/reports/tables.py +0 -0
  243. {patchman-4.0.19 → patchman-4.0.20}/reports/tasks.py +0 -0
  244. {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report.txt +0 -0
  245. {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report_delete.html +0 -0
  246. {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report_detail.html +0 -0
  247. {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report_list.html +0 -0
  248. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/__init__.py +0 -0
  249. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_api.py +0 -0
  250. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_edge_cases.py +0 -0
  251. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_integration.py +0 -0
  252. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_models.py +0 -0
  253. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_serializers.py +0 -0
  254. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_tasks.py +0 -0
  255. {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_utils.py +0 -0
  256. {patchman-4.0.19 → patchman-4.0.20}/reports/urls.py +0 -0
  257. {patchman-4.0.19 → patchman-4.0.20}/repos/__init__.py +0 -0
  258. {patchman-4.0.19 → patchman-4.0.20}/repos/admin.py +0 -0
  259. {patchman-4.0.19 → patchman-4.0.20}/repos/apps.py +0 -0
  260. {patchman-4.0.19 → patchman-4.0.20}/repos/forms.py +0 -0
  261. {patchman-4.0.19 → patchman-4.0.20}/repos/managers.py +0 -0
  262. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0001_initial.py +0 -0
  263. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0002_alter_repository_repotype.py +0 -0
  264. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0003_migrate_to_tz_aware.py +0 -0
  265. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0004_rename_file_checksum_mirror_package_checksum.py +0 -0
  266. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0005_rename_package_checksum_mirror_packages_checksum.py +0 -0
  267. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0006_mirror_errata_checksum_mirror_modules_checksum.py +0 -0
  268. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0007_alter_mirror_options_alter_mirrorpackage_options_and_more.py +0 -0
  269. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0008_mirror_packages_count.py +0 -0
  270. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0009_backfill_mirror_counts.py +0 -0
  271. {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/__init__.py +0 -0
  272. {patchman-4.0.19 → patchman-4.0.20}/repos/models.py +0 -0
  273. {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/__init__.py +0 -0
  274. {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/arch.py +0 -0
  275. {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/deb.py +0 -0
  276. {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/gentoo.py +0 -0
  277. {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/rpm.py +0 -0
  278. {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/yast.py +0 -0
  279. {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/yum.py +0 -0
  280. {patchman-4.0.19 → patchman-4.0.20}/repos/serializers.py +0 -0
  281. {patchman-4.0.19 → patchman-4.0.20}/repos/signals.py +0 -0
  282. {patchman-4.0.19 → patchman-4.0.20}/repos/tables.py +0 -0
  283. {patchman-4.0.19 → patchman-4.0.20}/repos/tasks.py +0 -0
  284. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_delete.html +0 -0
  285. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_detail.html +0 -0
  286. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_edit.html +0 -0
  287. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_list.html +0 -0
  288. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_with_repo_list.html +0 -0
  289. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_delete.html +0 -0
  290. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_detail.html +0 -0
  291. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_edit.html +0 -0
  292. {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_list.html +0 -0
  293. {patchman-4.0.19 → patchman-4.0.20}/repos/templatetags/__init__.py +0 -0
  294. {patchman-4.0.19 → patchman-4.0.20}/repos/tests/__init__.py +0 -0
  295. {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_api.py +0 -0
  296. {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_managers.py +0 -0
  297. {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_mirror_sync.py +0 -0
  298. {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_models.py +0 -0
  299. {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_views.py +0 -0
  300. {patchman-4.0.19 → patchman-4.0.20}/repos/urls.py +0 -0
  301. {patchman-4.0.19 → patchman-4.0.20}/repos/views.py +0 -0
  302. {patchman-4.0.19 → patchman-4.0.20}/requirements.txt +0 -0
  303. {patchman-4.0.19 → patchman-4.0.20}/sbin/patchman +0 -0
  304. {patchman-4.0.19 → patchman-4.0.20}/sbin/patchman-manage +0 -0
  305. {patchman-4.0.19 → patchman-4.0.20}/sbin/patchman-set-secret-key +0 -0
  306. {patchman-4.0.19 → patchman-4.0.20}/scripts/clear-django-logs.py +0 -0
  307. {patchman-4.0.19 → patchman-4.0.20}/scripts/create_graph.sh +0 -0
  308. {patchman-4.0.19 → patchman-4.0.20}/scripts/rpm-install.sh +0 -0
  309. {patchman-4.0.19 → patchman-4.0.20}/scripts/rpm-post-install.sh +0 -0
  310. {patchman-4.0.19 → patchman-4.0.20}/security/__init__.py +0 -0
  311. {patchman-4.0.19 → patchman-4.0.20}/security/admin.py +0 -0
  312. {patchman-4.0.19 → patchman-4.0.20}/security/apps.py +0 -0
  313. {patchman-4.0.19 → patchman-4.0.20}/security/managers.py +0 -0
  314. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0001_initial.py +0 -0
  315. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0002_alter_cve_options.py +0 -0
  316. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0003_alter_cve_description_alter_cwe_description.py +0 -0
  317. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0004_alter_cve_options.py +0 -0
  318. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0005_reference_cve_references.py +0 -0
  319. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0006_alter_cve_options_alter_cvss_unique_together.py +0 -0
  320. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0007_remove_cve_title.py +0 -0
  321. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0008_alter_cwe_options_alter_reference_options.py +0 -0
  322. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.py +0 -0
  323. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0010_fix_cvss_vector_string_length.py +0 -0
  324. {patchman-4.0.19 → patchman-4.0.20}/security/migrations/__init__.py +0 -0
  325. {patchman-4.0.19 → patchman-4.0.20}/security/serializers.py +0 -0
  326. {patchman-4.0.19 → patchman-4.0.20}/security/tables.py +0 -0
  327. {patchman-4.0.19 → patchman-4.0.20}/security/tasks.py +0 -0
  328. {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cve_detail.html +0 -0
  329. {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cve_list.html +0 -0
  330. {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cwe_detail.html +0 -0
  331. {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cwe_list.html +0 -0
  332. {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/reference_list.html +0 -0
  333. {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/security_landing.html +0 -0
  334. {patchman-4.0.19 → patchman-4.0.20}/security/tests/__init__.py +0 -0
  335. {patchman-4.0.19 → patchman-4.0.20}/security/tests/test_api.py +0 -0
  336. {patchman-4.0.19 → patchman-4.0.20}/security/urls.py +0 -0
  337. {patchman-4.0.19 → patchman-4.0.20}/security/utils.py +0 -0
  338. {patchman-4.0.19 → patchman-4.0.20}/security/views.py +0 -0
  339. {patchman-4.0.19 → patchman-4.0.20}/setup.cfg +0 -0
  340. {patchman-4.0.19 → patchman-4.0.20}/setup.py +0 -0
  341. {patchman-4.0.19 → patchman-4.0.20}/util/apps.py +0 -0
  342. {patchman-4.0.19 → patchman-4.0.20}/util/logging.py +0 -0
  343. {patchman-4.0.19 → patchman-4.0.20}/util/management/__init__.py +0 -0
  344. {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/__init__.py +0 -0
  345. {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/create_api_key.py +0 -0
  346. {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/list_api_keys.py +0 -0
  347. {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/revoke_api_key.py +0 -0
  348. {patchman-4.0.19 → patchman-4.0.20}/util/tables.py +0 -0
  349. {patchman-4.0.19 → patchman-4.0.20}/util/tasks.py +0 -0
  350. {patchman-4.0.19 → patchman-4.0.20}/util/templates/404.html +0 -0
  351. {patchman-4.0.19 → patchman-4.0.20}/util/templates/500.html +0 -0
  352. {patchman-4.0.19 → patchman-4.0.20}/util/templates/base.html +0 -0
  353. {patchman-4.0.19 → patchman-4.0.20}/util/templates/bulk_actions.html +0 -0
  354. {patchman-4.0.19 → patchman-4.0.20}/util/templates/dashboard.html +0 -0
  355. {patchman-4.0.19 → patchman-4.0.20}/util/templates/navbar.html +0 -0
  356. {patchman-4.0.19 → patchman-4.0.20}/util/templates/objectlist.html +0 -0
  357. {patchman-4.0.19 → patchman-4.0.20}/util/templates/registration/login.html +0 -0
  358. {patchman-4.0.19 → patchman-4.0.20}/util/templates/searchbar.html +0 -0
  359. {patchman-4.0.19 → patchman-4.0.20}/util/templates/table.html +0 -0
  360. {patchman-4.0.19 → patchman-4.0.20}/util/templatetags/__init__.py +0 -0
  361. {patchman-4.0.19 → patchman-4.0.20}/util/templatetags/common.py +0 -0
  362. {patchman-4.0.19 → patchman-4.0.20}/util/tests/__init__.py +0 -0
  363. {patchman-4.0.19 → patchman-4.0.20}/util/tests/test_commands.py +0 -0
  364. {patchman-4.0.19 → patchman-4.0.20}/util/tests/test_utils.py +0 -0
  365. {patchman-4.0.19 → patchman-4.0.20}/util/urls.py +0 -0
  366. {patchman-4.0.19 → patchman-4.0.20}/util/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: patchman
3
- Version: 4.0.19
3
+ Version: 4.0.20
4
4
  Summary: Django based patch status monitoring tool for linux systems
5
5
  Home-page: http://patchman.openbytes.ie/
6
6
  Author: Marcus Furlong
@@ -0,0 +1 @@
1
+ 4.0.20
@@ -0,0 +1,18 @@
1
+ # Generated by Django 4.2.28 on 2026-05-02 03:49
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('errata', '0009_backfill_cached_counts'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterField(
14
+ model_name='erratum',
15
+ name='synopsis',
16
+ field=models.TextField(),
17
+ ),
18
+ ]
@@ -33,7 +33,7 @@ class Erratum(models.Model):
33
33
  name = models.CharField(max_length=255, unique=True)
34
34
  e_type = models.CharField(max_length=255)
35
35
  issue_date = models.DateTimeField()
36
- synopsis = models.CharField(max_length=255)
36
+ synopsis = models.TextField()
37
37
  affected_packages = models.ManyToManyField(Package, blank=True, related_name='affected_by_erratum')
38
38
  fixed_packages = models.ManyToManyField(Package, blank=True, related_name='provides_fix_in_erratum')
39
39
  from operatingsystems.models import OSRelease
@@ -0,0 +1,21 @@
1
+ # Generated by Django 4.2.28 on 2026-04-01 03:15
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('hosts', '0012_backfill_cached_counts'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterUniqueTogether(
14
+ name='hostrepo',
15
+ unique_together=set(),
16
+ ),
17
+ migrations.AddConstraint(
18
+ model_name='hostrepo',
19
+ constraint=models.UniqueConstraint(fields=('host', 'repo'), name='unique_hostrepo'),
20
+ ),
21
+ ]
@@ -649,7 +649,12 @@ class HostRepo(models.Model):
649
649
  priority = models.IntegerField(default=0)
650
650
 
651
651
  class Meta:
652
- unique_together = ['host', 'repo']
652
+ constraints = [
653
+ models.UniqueConstraint(
654
+ fields=['host', 'repo'],
655
+ name='unique_hostrepo',
656
+ ),
657
+ ]
653
658
  ordering = ['host', 'repo']
654
659
 
655
660
  def __str__(self):
@@ -0,0 +1,21 @@
1
+ # Generated by Django 4.2.28 on 2026-04-01 03:15
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('modules', '0006_alter_module_context_alter_module_name_and_more'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterUniqueTogether(
14
+ name='module',
15
+ unique_together=set(),
16
+ ),
17
+ migrations.AddConstraint(
18
+ model_name='module',
19
+ constraint=models.UniqueConstraint(fields=('name', 'stream', 'version', 'context', 'arch', 'repo'), name='unique_module'),
20
+ ),
21
+ ]
@@ -35,7 +35,12 @@ class Module(models.Model):
35
35
  class Meta:
36
36
  verbose_name = 'Module'
37
37
  verbose_name_plural = 'Modules'
38
- unique_together = ['name', 'stream', 'version', 'context', 'arch', 'repo']
38
+ constraints = [
39
+ models.UniqueConstraint(
40
+ fields=['name', 'stream', 'version', 'context', 'arch', 'repo'],
41
+ name='unique_module',
42
+ ),
43
+ ]
39
44
  ordering = ['name', 'stream']
40
45
 
41
46
  def __str__(self):
@@ -0,0 +1,21 @@
1
+ # Generated by Django 4.2.28 on 2026-04-01 03:15
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('operatingsystems', '0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterUniqueTogether(
14
+ name='osrelease',
15
+ unique_together=set(),
16
+ ),
17
+ migrations.AddConstraint(
18
+ model_name='osrelease',
19
+ constraint=models.UniqueConstraint(fields=('name', 'codename', 'cpe_name'), name='unique_osrelease'),
20
+ ),
21
+ ]
@@ -35,7 +35,12 @@ class OSRelease(models.Model):
35
35
  class Meta:
36
36
  verbose_name = 'Operating System Release'
37
37
  verbose_name_plural = 'Operating System Releases'
38
- unique_together = ['name', 'codename', 'cpe_name']
38
+ constraints = [
39
+ models.UniqueConstraint(
40
+ fields=['name', 'codename', 'cpe_name'],
41
+ name='unique_osrelease',
42
+ ),
43
+ ]
39
44
  ordering = ['name']
40
45
 
41
46
  def __str__(self):
@@ -0,0 +1,29 @@
1
+ # Generated by Django 4.2.28 on 2026-04-01 03:15
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('packages', '0007_alter_package_epoch_alter_package_release_and_more'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterUniqueTogether(
14
+ name='package',
15
+ unique_together=set(),
16
+ ),
17
+ migrations.AlterUniqueTogether(
18
+ name='packageupdate',
19
+ unique_together=set(),
20
+ ),
21
+ migrations.AddConstraint(
22
+ model_name='package',
23
+ constraint=models.UniqueConstraint(fields=('name', 'epoch', 'version', 'release', 'arch', 'packagetype', 'category'), name='unique_package'),
24
+ ),
25
+ migrations.AddConstraint(
26
+ model_name='packageupdate',
27
+ constraint=models.UniqueConstraint(fields=('oldpackage', 'newpackage', 'security'), name='unique_packageupdate'),
28
+ ),
29
+ ]
@@ -87,7 +87,12 @@ class Package(models.Model):
87
87
 
88
88
  class Meta:
89
89
  ordering = ['name', 'epoch', 'version', 'release', 'arch']
90
- unique_together = ['name', 'epoch', 'version', 'release', 'arch', 'packagetype', 'category']
90
+ constraints = [
91
+ models.UniqueConstraint(
92
+ fields=['name', 'epoch', 'version', 'release', 'arch', 'packagetype', 'category'],
93
+ name='unique_package',
94
+ ),
95
+ ]
91
96
 
92
97
  def __str__(self):
93
98
  if self.epoch:
@@ -226,7 +231,12 @@ class PackageUpdate(models.Model):
226
231
  security = models.BooleanField(default=False)
227
232
 
228
233
  class Meta:
229
- unique_together = ['oldpackage', 'newpackage', 'security']
234
+ constraints = [
235
+ models.UniqueConstraint(
236
+ fields=['oldpackage', 'newpackage', 'security'],
237
+ name='unique_packageupdate',
238
+ ),
239
+ ]
230
240
  ordering = ['oldpackage', 'newpackage']
231
241
 
232
242
  def __str__(self):
@@ -67,7 +67,6 @@ TEMPLATES = [
67
67
  LANGUAGE_CODE = 'en-us'
68
68
  TIME_ZONE = 'America/NewYork'
69
69
  USE_I18N = True
70
- USE_L10N = True
71
70
  USE_TZ = True
72
71
 
73
72
  DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
@@ -16,9 +16,8 @@
16
16
  # along with If not, see <http://www.gnu.org/licenses/>
17
17
 
18
18
  from django.conf import settings
19
- from django.conf.urls import handler404, handler500, include # noqa
20
19
  from django.contrib import admin
21
- from django.urls import path
20
+ from django.urls import include, path
22
21
  from django.views import static
23
22
  from rest_framework import routers
24
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: patchman
3
- Version: 4.0.19
3
+ Version: 4.0.20
4
4
  Summary: Django based patch status monitoring tool for linux systems
5
5
  Home-page: http://patchman.openbytes.ie/
6
6
  Author: Marcus Furlong
@@ -53,6 +53,7 @@ errata/migrations/0006_alter_erratum_options.py
53
53
  errata/migrations/0007_alter_erratum_fixed_packages.py
54
54
  errata/migrations/0008_add_cached_count_fields.py
55
55
  errata/migrations/0009_backfill_cached_counts.py
56
+ errata/migrations/0010_synopsis_textfield.py
56
57
  errata/migrations/__init__.py
57
58
  errata/sources/__init__.py
58
59
  errata/sources/distros/__init__.py
@@ -100,6 +101,7 @@ hosts/migrations/0009_host_errata.py
100
101
  hosts/migrations/0010_alter_hostrepo_options.py
101
102
  hosts/migrations/0011_host_bug_updates_count_host_errata_count_and_more.py
102
103
  hosts/migrations/0012_backfill_cached_counts.py
104
+ hosts/migrations/0013_alter_hostrepo_unique_together_and_more.py
103
105
  hosts/migrations/__init__.py
104
106
  hosts/templates/hosts/host_delete.html
105
107
  hosts/templates/hosts/host_detail.html
@@ -128,6 +130,7 @@ modules/migrations/0003_alter_module_options.py
128
130
  modules/migrations/0004_alter_module_options.py
129
131
  modules/migrations/0005_alter_module_unique_together.py
130
132
  modules/migrations/0006_alter_module_context_alter_module_name_and_more.py
133
+ modules/migrations/0007_alter_module_unique_together_module_unique_module.py
131
134
  modules/migrations/__init__.py
132
135
  modules/templates/modules/module_detail.html
133
136
  modules/templates/modules/module_list.html
@@ -157,6 +160,7 @@ operatingsystems/migrations/0008_alter_osrelease_options_alter_osvariant_options
157
160
  operatingsystems/migrations/0009_osvariant_hosts_count.py
158
161
  operatingsystems/migrations/0010_backfill_osvariant_counts.py
159
162
  operatingsystems/migrations/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.py
163
+ operatingsystems/migrations/0012_alter_osrelease_unique_together_and_more.py
160
164
  operatingsystems/migrations/__init__.py
161
165
  operatingsystems/templates/operatingsystems/os_landing.html
162
166
  operatingsystems/templates/operatingsystems/osrelease_delete.html
@@ -187,6 +191,7 @@ packages/migrations/0004_alter_package_options_alter_packagecategory_options_and
187
191
  packages/migrations/0005_alter_package_packagetype.py
188
192
  packages/migrations/0006_alter_packageupdate_options.py
189
193
  packages/migrations/0007_alter_package_epoch_alter_package_release_and_more.py
194
+ packages/migrations/0008_alter_package_unique_together_and_more.py
190
195
  packages/migrations/__init__.py
191
196
  packages/templates/packages/package_detail.html
192
197
  packages/templates/packages/package_list.html
@@ -317,6 +322,7 @@ security/migrations/0007_remove_cve_title.py
317
322
  security/migrations/0008_alter_cwe_options_alter_reference_options.py
318
323
  security/migrations/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.py
319
324
  security/migrations/0010_fix_cvss_vector_string_length.py
325
+ security/migrations/0011_alter_cvss_unique_together_and_more.py
320
326
  security/migrations/__init__.py
321
327
  security/templates/security/cve_detail.html
322
328
  security/templates/security/cve_list.html
@@ -18,7 +18,7 @@ from django.test import TestCase, override_settings
18
18
 
19
19
  from packages.models import Package
20
20
  from reports.utils import (
21
- _get_package_type, _get_repo_type, parse_packages, parse_repos,
21
+ get_package_type, get_repo_type, parse_packages, parse_repos,
22
22
  process_repo_text,
23
23
  )
24
24
  from repos.models import Repository
@@ -122,32 +122,32 @@ class ParseReposTests(TestCase):
122
122
  CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
123
123
  )
124
124
  class GetPackageTypeTests(TestCase):
125
- """Tests for _get_package_type() function."""
125
+ """Tests for get_package_type() function."""
126
126
 
127
- def test_get_package_type_deb(self):
127
+ def testget_package_type_deb(self):
128
128
  """Test DEB package type detection."""
129
- self.assertEqual(_get_package_type('deb'), Package.DEB)
130
- self.assertEqual(_get_package_type('DEB'), Package.DEB)
131
- self.assertEqual(_get_package_type('Deb'), Package.DEB)
129
+ self.assertEqual(get_package_type('deb'), Package.DEB)
130
+ self.assertEqual(get_package_type('DEB'), Package.DEB)
131
+ self.assertEqual(get_package_type('Deb'), Package.DEB)
132
132
 
133
- def test_get_package_type_rpm(self):
133
+ def testget_package_type_rpm(self):
134
134
  """Test RPM package type detection."""
135
- self.assertEqual(_get_package_type('rpm'), Package.RPM)
136
- self.assertEqual(_get_package_type('RPM'), Package.RPM)
135
+ self.assertEqual(get_package_type('rpm'), Package.RPM)
136
+ self.assertEqual(get_package_type('RPM'), Package.RPM)
137
137
 
138
- def test_get_package_type_arch(self):
138
+ def testget_package_type_arch(self):
139
139
  """Test Arch package type detection."""
140
- self.assertEqual(_get_package_type('arch'), Package.ARCH)
140
+ self.assertEqual(get_package_type('arch'), Package.ARCH)
141
141
 
142
- def test_get_package_type_gentoo(self):
142
+ def testget_package_type_gentoo(self):
143
143
  """Test Gentoo package type detection."""
144
- self.assertEqual(_get_package_type('gentoo'), Package.GENTOO)
144
+ self.assertEqual(get_package_type('gentoo'), Package.GENTOO)
145
145
 
146
- def test_get_package_type_unknown(self):
146
+ def testget_package_type_unknown(self):
147
147
  """Test unknown package type returns UNKNOWN."""
148
- self.assertEqual(_get_package_type(''), Package.UNKNOWN)
149
- self.assertEqual(_get_package_type('invalid'), Package.UNKNOWN)
150
- self.assertEqual(_get_package_type(None), Package.UNKNOWN)
148
+ self.assertEqual(get_package_type(''), Package.UNKNOWN)
149
+ self.assertEqual(get_package_type('invalid'), Package.UNKNOWN)
150
+ self.assertEqual(get_package_type(None), Package.UNKNOWN)
151
151
 
152
152
 
153
153
  @override_settings(
@@ -155,30 +155,30 @@ class GetPackageTypeTests(TestCase):
155
155
  CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
156
156
  )
157
157
  class GetRepoTypeTests(TestCase):
158
- """Tests for _get_repo_type() function."""
158
+ """Tests for get_repo_type() function."""
159
159
 
160
- def test_get_repo_type_deb(self):
160
+ def testget_repo_type_deb(self):
161
161
  """Test DEB repo type detection."""
162
- self.assertEqual(_get_repo_type('deb'), Repository.DEB)
163
- self.assertEqual(_get_repo_type('DEB'), Repository.DEB)
162
+ self.assertEqual(get_repo_type('deb'), Repository.DEB)
163
+ self.assertEqual(get_repo_type('DEB'), Repository.DEB)
164
164
 
165
- def test_get_repo_type_rpm(self):
165
+ def testget_repo_type_rpm(self):
166
166
  """Test RPM repo type detection."""
167
- self.assertEqual(_get_repo_type('rpm'), Repository.RPM)
168
- self.assertEqual(_get_repo_type('RPM'), Repository.RPM)
167
+ self.assertEqual(get_repo_type('rpm'), Repository.RPM)
168
+ self.assertEqual(get_repo_type('RPM'), Repository.RPM)
169
169
 
170
- def test_get_repo_type_arch(self):
170
+ def testget_repo_type_arch(self):
171
171
  """Test Arch repo type detection."""
172
- self.assertEqual(_get_repo_type('arch'), Repository.ARCH)
172
+ self.assertEqual(get_repo_type('arch'), Repository.ARCH)
173
173
 
174
- def test_get_repo_type_gentoo(self):
174
+ def testget_repo_type_gentoo(self):
175
175
  """Test Gentoo repo type detection."""
176
- self.assertEqual(_get_repo_type('gentoo'), Repository.GENTOO)
176
+ self.assertEqual(get_repo_type('gentoo'), Repository.GENTOO)
177
177
 
178
- def test_get_repo_type_unknown(self):
178
+ def testget_repo_type_unknown(self):
179
179
  """Test unknown repo type returns None."""
180
- self.assertIsNone(_get_repo_type(''))
181
- self.assertIsNone(_get_repo_type('invalid'))
180
+ self.assertIsNone(get_repo_type(''))
181
+ self.assertIsNone(get_repo_type('invalid'))
182
182
 
183
183
 
184
184
  @override_settings(
@@ -34,7 +34,9 @@ from packages.utils import (
34
34
  from patchman.signals import pbar_start, pbar_update
35
35
  from repos.models import Mirror, MirrorPackage, Repository
36
36
  from repos.utils import get_or_create_repo
37
- from util.logging import debug_message, error_message, info_message
37
+ from util.logging import (
38
+ debug_message, error_message, info_message, warning_message,
39
+ )
38
40
 
39
41
 
40
42
  def process_repos(report, host):
@@ -216,7 +218,7 @@ def parse_repos(repos_string):
216
218
  return repos
217
219
 
218
220
 
219
- def _get_repo_type(type_str):
221
+ def get_repo_type(type_str):
220
222
  """ Convert repo type string to Repository constant
221
223
  """
222
224
  type_str = type_str.lower()
@@ -242,6 +244,9 @@ def process_repo(r_type, r_name, r_id, r_priority, urls, arch):
242
244
  for r_url in urls:
243
245
  if r_type == Repository.GENTOO and r_url.startswith('rsync'):
244
246
  r_url = 'https://api.gentoo.org/mirrors/distfiles.xml'
247
+ if not r_url.startswith(('http://', 'https://')):
248
+ warning_message(text=f'Skipping non-http(s) mirror URL: {r_url}')
249
+ continue
245
250
  try:
246
251
  mirror = Mirror.objects.get(url=r_url.strip('/'))
247
252
  except Mirror.DoesNotExist:
@@ -259,7 +264,8 @@ def process_repo(r_type, r_name, r_id, r_priority, urls, arch):
259
264
  repository.repo_id = r_id
260
265
 
261
266
  for url in unknown:
262
- Mirror.objects.create(repo=repository, url=url.rstrip('/'))
267
+ if url.startswith(('http://', 'https://')):
268
+ Mirror.objects.create(repo=repository, url=url.rstrip('/'))
263
269
 
264
270
  for mirror in Mirror.objects.filter(repo=repository).values('url'):
265
271
  mirror_url = mirror.get('url')
@@ -364,7 +370,7 @@ def parse_packages(packages_string):
364
370
  return packages
365
371
 
366
372
 
367
- def _get_package_type(type_str):
373
+ def get_package_type(type_str):
368
374
  """ Convert package type string to Package constant
369
375
  """
370
376
  type_str = type_str.lower() if type_str else ''
@@ -398,7 +404,7 @@ def process_package_text(pkg):
398
404
  rel = pkg[3] if pkg[3] else ''
399
405
  arch = pkg[4] if pkg[4] else 'unknown'
400
406
 
401
- p_type = _get_package_type(pkg[5])
407
+ p_type = get_package_type(pkg[5])
402
408
  p_category = pkg[6] if p_type == Package.GENTOO and len(pkg) > 6 else None
403
409
  p_repo = pkg[7] if p_type == Package.GENTOO and len(pkg) > 7 else None
404
410
 
@@ -413,7 +419,7 @@ def process_package_json(pkg):
413
419
  ver = pkg.get('version', '')
414
420
  rel = pkg.get('release', '')
415
421
  arch = pkg.get('arch', 'unknown')
416
- p_type = _get_package_type(pkg.get('type', ''))
422
+ p_type = get_package_type(pkg.get('type', ''))
417
423
  p_category = pkg.get('category') if p_type == Package.GENTOO else None
418
424
  p_repo = pkg.get('repo') if p_type == Package.GENTOO else None
419
425
 
@@ -453,7 +459,7 @@ def process_packages_json(packages_json, host):
453
459
  def process_repo_json(repo, arch):
454
460
  """ Processes a single JSON repo dict and converts to a repo object
455
461
  """
456
- r_type = _get_repo_type(repo.get('type', ''))
462
+ r_type = get_repo_type(repo.get('type', ''))
457
463
  if r_type is None:
458
464
  return None, 0
459
465
 
@@ -304,8 +304,8 @@ class ReportViewSet(viewsets.ViewSet):
304
304
  data = serializer.validated_data
305
305
 
306
306
  # Extract client IP
307
- x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR')
308
- x_real_ip = request.META.get('HTTP_X_REAL_IP')
307
+ x_forwarded_for = request.headers.get('x-forwarded-for')
308
+ x_real_ip = request.headers.get('x-real-ip')
309
309
  if x_forwarded_for:
310
310
  report_ip = x_forwarded_for.split(',')[0]
311
311
  elif x_real_ip:
@@ -336,7 +336,7 @@ class ReportViewSet(viewsets.ViewSet):
336
336
  os=data['os'],
337
337
  report_ip=report_ip,
338
338
  protocol='2',
339
- useragent=request.META.get('HTTP_USER_AGENT', ''),
339
+ useragent=request.headers.get('user-agent', ''),
340
340
  packages=json.dumps(data.get('packages', [])),
341
341
  repos=json.dumps(data.get('repos', [])),
342
342
  modules=json.dumps(data.get('modules', [])),
@@ -197,6 +197,9 @@ def check_for_mirrorlists(repo):
197
197
  Creates MAX_MIRRORS mirrors from list if so.
198
198
  """
199
199
  for mirror in repo.mirror_set.all():
200
+ if not mirror.url.startswith(('http://', 'https://')):
201
+ warning_message(text=f'Skipping non-http(s) mirror URL: {mirror.url}')
202
+ continue
200
203
  mirror_urls = get_mirrorlist_urls(mirror.url)
201
204
  if mirror_urls:
202
205
  mirror.mirrorlist = True
@@ -0,0 +1,29 @@
1
+ # Generated by Django 4.2.28 on 2026-04-01 03:15
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('security', '0010_fix_cvss_vector_string_length'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterUniqueTogether(
14
+ name='cvss',
15
+ unique_together=set(),
16
+ ),
17
+ migrations.AlterUniqueTogether(
18
+ name='reference',
19
+ unique_together=set(),
20
+ ),
21
+ migrations.AddConstraint(
22
+ model_name='cvss',
23
+ constraint=models.UniqueConstraint(fields=('score', 'severity', 'version', 'vector_string'), name='unique_cvss'),
24
+ ),
25
+ migrations.AddConstraint(
26
+ model_name='reference',
27
+ constraint=models.UniqueConstraint(fields=('ref_type', 'url'), name='unique_reference'),
28
+ ),
29
+ ]
@@ -32,7 +32,12 @@ class Reference(models.Model):
32
32
  url = models.URLField(max_length=512)
33
33
 
34
34
  class Meta:
35
- unique_together = ['ref_type', 'url']
35
+ constraints = [
36
+ models.UniqueConstraint(
37
+ fields=['ref_type', 'url'],
38
+ name='unique_reference',
39
+ ),
40
+ ]
36
41
  ordering = ['ref_type', 'url']
37
42
 
38
43
  def __str__(self):
@@ -87,7 +92,12 @@ class CVSS(models.Model):
87
92
  vector_string = models.CharField(max_length=255, blank=True, null=True)
88
93
 
89
94
  class Meta:
90
- unique_together = ['score', 'severity', 'version', 'vector_string']
95
+ constraints = [
96
+ models.UniqueConstraint(
97
+ fields=['score', 'severity', 'version', 'vector_string'],
98
+ name='unique_cvss',
99
+ ),
100
+ ]
91
101
 
92
102
  def __str__(self):
93
103
  return f'{self.score} ({self.severity}) [{self.vector_string}]'
@@ -16,6 +16,7 @@
16
16
 
17
17
  from decimal import Decimal
18
18
 
19
+ from django.db import IntegrityError
19
20
  from django.test import TestCase, override_settings
20
21
 
21
22
  from security.models import CVE, CVSS, CWE, Reference
@@ -47,7 +48,6 @@ class CVEMethodTests(TestCase):
47
48
  def test_cve_unique_id(self):
48
49
  """Test CVE cve_id is unique."""
49
50
  CVE.objects.create(cve_id='CVE-2024-12345')
50
- from django.db import IntegrityError
51
51
  with self.assertRaises(IntegrityError):
52
52
  CVE.objects.create(cve_id='CVE-2024-12345')
53
53
 
@@ -90,7 +90,6 @@ class CWEMethodTests(TestCase):
90
90
  def test_cwe_unique_id(self):
91
91
  """Test CWE cwe_id is unique."""
92
92
  CWE.objects.create(cwe_id='CWE-79', name='XSS')
93
- from django.db import IntegrityError
94
93
  with self.assertRaises(IntegrityError):
95
94
  CWE.objects.create(cwe_id='CWE-79', name='Different name')
96
95
 
@@ -155,12 +154,11 @@ class ReferenceMethodTests(TestCase):
155
154
  self.assertIn('example.com', str_repr)
156
155
 
157
156
  def test_reference_unique_together(self):
158
- """Test Reference unique_together constraint."""
157
+ """Test Reference unique constraint."""
159
158
  Reference.objects.create(
160
159
  url='https://example.com/advisory',
161
160
  ref_type='VENDOR',
162
161
  )
163
- from django.db import IntegrityError
164
162
  with self.assertRaises(IntegrityError):
165
163
  Reference.objects.create(
166
164
  url='https://example.com/advisory',
@@ -121,6 +121,8 @@ def get_url(url, headers=None, params=None, session=None):
121
121
  error_message(text=f'Too many redirects - {url}')
122
122
  except ConnectionError:
123
123
  error_message(text=f'Connection error - {url}')
124
+ except requests.exceptions.InvalidSchema:
125
+ error_message(text=f'Unsupported URL scheme - {url}')
124
126
  return response
125
127
 
126
128
 
@@ -194,16 +196,18 @@ def unzstd(contents):
194
196
  """ unzstd contents in memory and return the data
195
197
  """
196
198
  try:
197
- zstddata = zstd.ZstdDecompressor().stream_reader(contents).read()
198
- return zstddata
199
- except zstd.ZstdError as e:
199
+ if hasattr(zstd, 'decompress'):
200
+ return zstd.decompress(contents)
201
+ return zstd.ZstdDecompressor().stream_reader(contents).read()
202
+ except (zstd.ZstdError, Exception) as e:
200
203
  error_message(text=f'zstd: {e}')
201
204
 
202
205
 
203
206
  def extract(data, fmt):
204
207
  """ Extract the contents based on mimetype or file ending. Return the
205
208
  unmodified data if neither mimetype nor file ending matches, otherwise
206
- return the extracted contents.
209
+ return the extracted contents. Falls back to unmodified data if
210
+ decompression fails (e.g. requests already decompressed the content).
207
211
  """
208
212
  try:
209
213
  mime = magic.from_buffer(data, mime=True)
@@ -212,14 +216,19 @@ def extract(data, fmt):
212
216
  m = magic.open(magic.MAGIC_MIME)
213
217
  m.load()
214
218
  mime = m.buffer(data).split(';')[0]
219
+ if mime.startswith('text/'):
220
+ return data
221
+ extracted = None
215
222
  if mime == 'application/zstd' or fmt.endswith('zst'):
216
- return unzstd(data)
217
- if mime == 'application/x-xz' or fmt.endswith('xz'):
218
- return unxz(data)
223
+ extracted = unzstd(data)
224
+ elif mime == 'application/x-xz' or fmt.endswith('xz'):
225
+ extracted = unxz(data)
219
226
  elif mime == 'application/x-bzip2' or fmt.endswith('bz2'):
220
- return bunzip2(data)
227
+ extracted = bunzip2(data)
221
228
  elif mime == 'application/gzip' or fmt.endswith('gz'):
222
- return gunzip(data)
229
+ extracted = gunzip(data)
230
+ if extracted is not None:
231
+ return extracted
223
232
  return data
224
233
 
225
234