patchman 4.0.20__py3-none-any.whl → 4.0.22__py3-none-any.whl
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.
- arch/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- arch/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- arch/migrations/__pycache__/0002_alter_machinearchitecture_options_and_more.cpython-315.opt-1.pyc +0 -0
- arch/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- arch/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- arch/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- arch/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- domains/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- domains/migrations/__pycache__/0002_alter_domain_options.cpython-315.opt-1.pyc +0 -0
- domains/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- domains/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- domains/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- domains/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0002_alter_erratumreference_unique_together.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0003_delete_erratumreference_alter_erratum_references.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0004_rename_packages_erratum_fixed_packages.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0005_erratum_affected_packages_and_more.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0006_alter_erratum_options.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0007_alter_erratum_fixed_packages.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0008_add_cached_count_fields.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0009_backfill_cached_counts.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0010_synopsis_textfield.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/sources/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/alma.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/arch.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/centos.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/debian.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/rocky.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/ubuntu.cpython-315.opt-1.pyc +0 -0
- errata/sources/repos/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/sources/repos/__pycache__/yum.cpython-315.opt-1.pyc +0 -0
- errata/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_integration.cpython-315.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- errata/utils.py +2 -0
- hosts/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/0014_drop_legacy_tagging.py +34 -0
- hosts/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0002_initial.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0003_host_modules.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0004_remove_host_tags_host_tags.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0005_rename_os_host_osvariant.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0006_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0007_alter_host_tags.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0008_alter_host_options.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0009_host_errata.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0010_alter_hostrepo_options.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0011_host_bug_updates_count_host_errata_count_and_more.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0012_backfill_cached_counts.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0013_alter_hostrepo_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0014_drop_legacy_tagging.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/models.py +5 -0
- hosts/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/templatetags/__pycache__/report_alert.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_find_updates.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_managers.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_migrations.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- hosts/tests/test_migrations.py +99 -0
- hosts/tests/test_models.py +39 -0
- hosts/tests/test_utils.py +91 -0
- hosts/utils.py +35 -1
- modules/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0002_auto_20240204_2214.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0003_alter_module_options.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0004_alter_module_options.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0005_alter_module_unique_together.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0006_alter_module_context_alter_module_name_and_more.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0007_alter_module_unique_together_module_unique_module.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0002_initial.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0003_os_arch.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0003_osgroup_codename.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0004_alter_osgroup_unique_together.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0005_rename_osgroup_osrelease_rename_os_osvariant_and_more.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0006_osrelease_cpe_name_osvariant_codename.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0007_alter_osrelease_unique_together.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0008_alter_osrelease_options_alter_osvariant_options.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0009_osvariant_hosts_count.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0010_backfill_osvariant_counts.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0012_alter_osrelease_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0002_auto_20250207_1319.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0002_delete_erratum_delete_erratumreference.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0003_auto_20250207_1746.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0004_alter_package_options_alter_packagecategory_options_and_more.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0005_alter_package_packagetype.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0006_alter_packageupdate_options.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0007_alter_package_epoch_alter_package_release_and_more.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0008_alter_package_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- packages/models.py +1 -1
- packages/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_version_compare.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_views.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/celery.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/receivers.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/{settings.cpython-314.opt-1.pyc → settings.cpython-315.opt-1.pyc} +0 -0
- patchman/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/wsgi.cpython-315.opt-1.pyc +0 -0
- patchman/settings.py +1 -1
- patchman/sqlite3/__pycache__/base.cpython-315.opt-1.pyc +0 -0
- {patchman-4.0.20.data → patchman-4.0.22.data}/scripts/patchman +1 -1
- {patchman-4.0.20.dist-info → patchman-4.0.22.dist-info}/METADATA +3 -4
- {patchman-4.0.20.dist-info → patchman-4.0.22.dist-info}/RECORD +310 -302
- {patchman-4.0.20.dist-info → patchman-4.0.22.dist-info}/WHEEL +1 -1
- reports/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- reports/migrations/0006_alter_report_options.py +17 -0
- reports/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0002_report_modules.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0003_remove_report_accessed.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0004_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0005_alter_report_options.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0006_alter_report_options.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- reports/models.py +3 -0
- reports/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_edge_cases.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_integration.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_parsing.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_serializers.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_tasks.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0002_alter_repository_repotype.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0003_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0004_rename_file_checksum_mirror_package_checksum.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0005_rename_package_checksum_mirror_packages_checksum.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0006_mirror_errata_checksum_mirror_modules_checksum.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0007_alter_mirror_options_alter_mirrorpackage_options_and_more.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0008_mirror_packages_count.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0009_backfill_mirror_counts.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/arch.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/deb.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/gentoo.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/rpm.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/yast.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/yum.cpython-315.opt-1.pyc +0 -0
- repos/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_managers.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_mirror_sync.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_views.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0002_alter_cve_options.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0003_alter_cve_description_alter_cwe_description.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0004_alter_cve_options.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0005_reference_cve_references.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0006_alter_cve_options_alter_cvss_unique_together.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0007_remove_cve_title.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0008_alter_cwe_options_alter_reference_options.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0010_fix_cvss_vector_string_length.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0011_alter_cvss_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- security/models.py +1 -1
- security/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- security/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- security/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- util/__init__.py +5 -3
- util/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/context_processors.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/filterspecs.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/logging.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- util/management/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/create_api_key.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/list_api_keys.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/revoke_api_key.cpython-315.opt-1.pyc +0 -0
- util/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/templatetags/__pycache__/common.cpython-315.opt-1.pyc +0 -0
- util/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/tests/__pycache__/test_commands.cpython-315.opt-1.pyc +0 -0
- util/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- util/tests/test_utils.py +21 -1
- arch/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- arch/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- arch/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- arch/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- arch/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- arch/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- arch/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- arch/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- arch/migrations/__pycache__/0002_alter_machinearchitecture_options_and_more.cpython-314.opt-1.pyc +0 -0
- arch/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- arch/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- arch/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- arch/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- domains/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- domains/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- domains/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- domains/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- domains/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- domains/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- domains/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- domains/migrations/__pycache__/0002_alter_domain_options.cpython-314.opt-1.pyc +0 -0
- domains/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- domains/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- domains/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- domains/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/managers.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/signals.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/tasks.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- errata/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0002_alter_erratumreference_unique_together.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0003_delete_erratumreference_alter_erratum_references.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0004_rename_packages_erratum_fixed_packages.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0005_erratum_affected_packages_and_more.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0006_alter_erratum_options.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0007_alter_erratum_fixed_packages.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0008_add_cached_count_fields.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0009_backfill_cached_counts.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0010_synopsis_textfield.cpython-314.opt-1.pyc +0 -0
- errata/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- errata/sources/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/alma.cpython-314.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/arch.cpython-314.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/centos.cpython-314.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/debian.cpython-314.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/rocky.cpython-314.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/ubuntu.cpython-314.opt-1.pyc +0 -0
- errata/sources/repos/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- errata/sources/repos/__pycache__/yum.cpython-314.opt-1.pyc +0 -0
- errata/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_integration.cpython-314.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/forms.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/managers.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/signals.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/tasks.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- hosts/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0002_initial.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0003_host_modules.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0004_remove_host_tags_host_tags.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0005_rename_os_host_osvariant.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0006_migrate_to_tz_aware.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0007_alter_host_tags.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0008_alter_host_options.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0009_host_errata.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0010_alter_hostrepo_options.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0011_host_bug_updates_count_host_errata_count_and_more.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0012_backfill_cached_counts.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0013_alter_hostrepo_unique_together_and_more.cpython-314.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- hosts/templatetags/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- hosts/templatetags/__pycache__/report_alert.cpython-314.opt-1.pyc +0 -0
- hosts/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_find_updates.cpython-314.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_managers.cpython-314.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/managers.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- modules/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0002_auto_20240204_2214.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0003_alter_module_options.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0004_alter_module_options.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0005_alter_module_unique_together.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0006_alter_module_context_alter_module_name_and_more.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0007_alter_module_unique_together_module_unique_module.cpython-314.opt-1.pyc +0 -0
- modules/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/forms.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/managers.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/signals.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- operatingsystems/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0002_initial.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0003_os_arch.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0003_osgroup_codename.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0004_alter_osgroup_unique_together.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0005_rename_osgroup_osrelease_rename_os_osvariant_and_more.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0006_osrelease_cpe_name_osvariant_codename.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0007_alter_osrelease_unique_together.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0008_alter_osrelease_options_alter_osvariant_options.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0009_osvariant_hosts_count.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0010_backfill_osvariant_counts.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0012_alter_osrelease_unique_together_and_more.cpython-314.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/managers.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- packages/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0002_auto_20250207_1319.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0002_delete_erratum_delete_erratumreference.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0003_auto_20250207_1746.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0004_alter_package_options_alter_packagecategory_options_and_more.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0005_alter_package_packagetype.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0006_alter_packageupdate_options.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0007_alter_package_epoch_alter_package_release_and_more.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0008_alter_package_unique_together_and_more.cpython-314.opt-1.pyc +0 -0
- packages/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- packages/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_version_compare.cpython-314.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_views.cpython-314.opt-1.pyc +0 -0
- patchman/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- patchman/__pycache__/celery.cpython-314.opt-1.pyc +0 -0
- patchman/__pycache__/receivers.cpython-314.opt-1.pyc +0 -0
- patchman/__pycache__/signals.cpython-314.opt-1.pyc +0 -0
- patchman/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- patchman/__pycache__/wsgi.cpython-314.opt-1.pyc +0 -0
- patchman/sqlite3/__pycache__/base.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/tasks.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- reports/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0002_report_modules.cpython-314.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0003_remove_report_accessed.cpython-314.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0004_migrate_to_tz_aware.cpython-314.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0005_alter_report_options.cpython-314.opt-1.pyc +0 -0
- reports/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_edge_cases.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_integration.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_parsing.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_serializers.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_tasks.cpython-314.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_utils.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/forms.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/managers.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/signals.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/tasks.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- repos/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0002_alter_repository_repotype.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0003_migrate_to_tz_aware.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0004_rename_file_checksum_mirror_package_checksum.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0005_rename_package_checksum_mirror_packages_checksum.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0006_mirror_errata_checksum_mirror_modules_checksum.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0007_alter_mirror_options_alter_mirrorpackage_options_and_more.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0008_mirror_packages_count.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0009_backfill_mirror_counts.cpython-314.opt-1.pyc +0 -0
- repos/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/arch.cpython-314.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/deb.cpython-314.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/gentoo.cpython-314.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/rpm.cpython-314.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/yast.cpython-314.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/yum.cpython-314.opt-1.pyc +0 -0
- repos/templatetags/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- repos/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_managers.cpython-314.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_mirror_sync.cpython-314.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_views.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/admin.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/managers.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/models.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/serializers.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/tasks.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/utils.cpython-314.opt-1.pyc +0 -0
- security/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0001_initial.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0002_alter_cve_options.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0003_alter_cve_description_alter_cwe_description.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0004_alter_cve_options.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0005_reference_cve_references.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0006_alter_cve_options_alter_cvss_unique_together.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0007_remove_cve_title.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0008_alter_cwe_options_alter_reference_options.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0010_fix_cvss_vector_string_length.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/0011_alter_cvss_unique_together_and_more.cpython-314.opt-1.pyc +0 -0
- security/migrations/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- security/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- security/tests/__pycache__/test_api.cpython-314.opt-1.pyc +0 -0
- security/tests/__pycache__/test_models.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/apps.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/context_processors.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/filterspecs.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/logging.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/tables.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/tasks.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/urls.cpython-314.opt-1.pyc +0 -0
- util/__pycache__/views.cpython-314.opt-1.pyc +0 -0
- util/management/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- util/management/commands/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- util/management/commands/__pycache__/create_api_key.cpython-314.opt-1.pyc +0 -0
- util/management/commands/__pycache__/list_api_keys.cpython-314.opt-1.pyc +0 -0
- util/management/commands/__pycache__/revoke_api_key.cpython-314.opt-1.pyc +0 -0
- util/templatetags/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- util/templatetags/__pycache__/common.cpython-314.opt-1.pyc +0 -0
- util/tests/__pycache__/__init__.cpython-314.opt-1.pyc +0 -0
- util/tests/__pycache__/test_commands.cpython-314.opt-1.pyc +0 -0
- util/tests/__pycache__/test_utils.cpython-314.opt-1.pyc +0 -0
- {patchman-4.0.20.data → patchman-4.0.22.data}/scripts/patchman-manage +0 -0
- {patchman-4.0.20.data → patchman-4.0.22.data}/scripts/patchman-set-secret-key +0 -0
- {patchman-4.0.20.dist-info → patchman-4.0.22.dist-info}/licenses/AUTHORS +0 -0
- {patchman-4.0.20.dist-info → patchman-4.0.22.dist-info}/licenses/COPYING +0 -0
- {patchman-4.0.20.dist-info → patchman-4.0.22.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
arch/migrations/__pycache__/0002_alter_machinearchitecture_options_and_more.cpython-315.opt-1.pyc
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
errata/migrations/__pycache__/0002_alter_erratumreference_unique_together.cpython-315.opt-1.pyc
ADDED
|
Binary file
|
|
Binary file
|
errata/migrations/__pycache__/0004_rename_packages_erratum_fixed_packages.cpython-315.opt-1.pyc
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
errata/utils.py
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
16
|
|
|
17
17
|
from errata.models import Erratum
|
|
18
|
+
from hosts.utils import refresh_host_update_counts
|
|
18
19
|
from packages.models import PackageUpdate
|
|
19
20
|
from patchman.signals import pbar_start, pbar_update
|
|
20
21
|
from util import fetch_concurrently, run_concurrently, tz_aware_datetime
|
|
@@ -72,6 +73,7 @@ def mark_errata_security_updates(concurrent_processing=True, max_workers=25):
|
|
|
72
73
|
for i, e in enumerate(Erratum.objects.all()):
|
|
73
74
|
e.scan_for_security_updates()
|
|
74
75
|
pbar_update.send(sender=None, index=i + 1)
|
|
76
|
+
refresh_host_update_counts()
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
def scan_security_worker(pk):
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from django.db import migrations
|
|
2
|
+
|
|
3
|
+
LEGACY_TAGGING_TABLES = ['tagging_taggeditem', 'tagging_tag']
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def drop_legacy_tagging(apps, schema_editor):
|
|
7
|
+
# 0004 never dropped the django-tagging column/tables on 3.x upgrades
|
|
8
|
+
conn = schema_editor.connection
|
|
9
|
+
q = schema_editor.quote_name
|
|
10
|
+
with conn.cursor() as cursor:
|
|
11
|
+
columns = [c.name for c in conn.introspection.get_table_description(cursor, 'hosts_host')]
|
|
12
|
+
tables = conn.introspection.table_names(cursor)
|
|
13
|
+
|
|
14
|
+
if 'tags' in columns:
|
|
15
|
+
if getattr(conn.features, 'can_alter_table_drop_column', True):
|
|
16
|
+
schema_editor.execute(f'ALTER TABLE {q("hosts_host")} DROP COLUMN {q("tags")}')
|
|
17
|
+
else:
|
|
18
|
+
# old sqlite: rebuilding the table from the model drops unknown columns
|
|
19
|
+
schema_editor._remake_table(apps.get_model('hosts', 'Host'))
|
|
20
|
+
|
|
21
|
+
for table in LEGACY_TAGGING_TABLES:
|
|
22
|
+
if table in tables:
|
|
23
|
+
schema_editor.execute(f'DROP TABLE {q(table)}')
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class Migration(migrations.Migration):
|
|
27
|
+
|
|
28
|
+
dependencies = [
|
|
29
|
+
('hosts', '0013_alter_hostrepo_unique_together_and_more'),
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
operations = [
|
|
33
|
+
migrations.RunPython(drop_legacy_tagging, migrations.RunPython.noop),
|
|
34
|
+
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
hosts/migrations/__pycache__/0013_alter_hostrepo_unique_together_and_more.cpython-315.opt-1.pyc
ADDED
|
Binary file
|
|
Binary file
|
hosts/models.py
CHANGED
|
@@ -633,6 +633,11 @@ class Host(models.Model):
|
|
|
633
633
|
if running_kernel_pkg:
|
|
634
634
|
for package in kernel_packages:
|
|
635
635
|
if package.name.name.startswith('linux-image-'):
|
|
636
|
+
# skip meta-packages (e.g. linux-image-generic): their version
|
|
637
|
+
# (5.15.0.198.171) always sorts above the kernel they pull in
|
|
638
|
+
# (5.15.0-198.208), so they would flag a reboot on every host
|
|
639
|
+
if self.get_deb_kernel_series(package.name.name) is None:
|
|
640
|
+
continue
|
|
636
641
|
flavour = self.get_deb_kernel_flavour(package.name.name)
|
|
637
642
|
if running_flavour is None or flavour == running_flavour:
|
|
638
643
|
if running_kernel_pkg.compare_version(package) == -1:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Copyright 2026 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
from importlib import import_module
|
|
19
|
+
|
|
20
|
+
from django.apps import apps
|
|
21
|
+
from django.db import connection
|
|
22
|
+
from django.test import TransactionTestCase, override_settings
|
|
23
|
+
|
|
24
|
+
from hosts.models import Host
|
|
25
|
+
from reports.models import Report
|
|
26
|
+
|
|
27
|
+
migration = import_module('hosts.migrations.0014_drop_legacy_tagging')
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def host_columns():
|
|
31
|
+
with connection.cursor() as cursor:
|
|
32
|
+
return [c.name for c in connection.introspection.get_table_description(cursor, 'hosts_host')]
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def table_names():
|
|
36
|
+
with connection.cursor() as cursor:
|
|
37
|
+
return connection.introspection.table_names(cursor)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@override_settings(
|
|
41
|
+
CELERY_TASK_ALWAYS_EAGER=True,
|
|
42
|
+
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
43
|
+
)
|
|
44
|
+
class DropLegacyTaggingTests(TransactionTestCase):
|
|
45
|
+
"""Tests for hosts migration 0014 (leftover django-tagging schema, #690)."""
|
|
46
|
+
|
|
47
|
+
def setUp(self):
|
|
48
|
+
self.addCleanup(self.run_migration)
|
|
49
|
+
|
|
50
|
+
def run_migration(self):
|
|
51
|
+
with connection.schema_editor() as schema_editor:
|
|
52
|
+
migration.drop_legacy_tagging(apps, schema_editor)
|
|
53
|
+
|
|
54
|
+
def add_legacy_schema(self):
|
|
55
|
+
with connection.cursor() as cursor:
|
|
56
|
+
cursor.execute('ALTER TABLE hosts_host ADD COLUMN tags varchar(255) CHECK (tags IS NOT NULL)')
|
|
57
|
+
cursor.execute('CREATE TABLE tagging_tag (id integer PRIMARY KEY, name varchar(50))')
|
|
58
|
+
cursor.execute(
|
|
59
|
+
'CREATE TABLE tagging_taggeditem '
|
|
60
|
+
'(id integer PRIMARY KEY, tag_id integer REFERENCES tagging_tag (id))'
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
def create_report(self):
|
|
64
|
+
return Report.objects.create(
|
|
65
|
+
host='legacy.example.com',
|
|
66
|
+
domain='example.com',
|
|
67
|
+
report_ip='192.168.1.10',
|
|
68
|
+
os='Ubuntu 22.04.3 LTS',
|
|
69
|
+
kernel='5.15.0-91-generic',
|
|
70
|
+
arch='x86_64',
|
|
71
|
+
protocol='2',
|
|
72
|
+
packages=json.dumps([]),
|
|
73
|
+
repos=json.dumps([]),
|
|
74
|
+
modules=json.dumps([]),
|
|
75
|
+
sec_updates=json.dumps([]),
|
|
76
|
+
bug_updates=json.dumps([]),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
def test_legacy_column_does_not_crash_report_processing(self):
|
|
80
|
+
"""Host creation fails on the legacy column; process() must not raise."""
|
|
81
|
+
self.add_legacy_schema()
|
|
82
|
+
self.create_report().process(find_updates=False)
|
|
83
|
+
self.assertFalse(Host.objects.filter(hostname='legacy.example.com').exists())
|
|
84
|
+
|
|
85
|
+
def test_drops_legacy_column_and_tables(self):
|
|
86
|
+
"""Leftover tags column and tagging tables are dropped; hosts can be created again."""
|
|
87
|
+
self.add_legacy_schema()
|
|
88
|
+
self.run_migration()
|
|
89
|
+
self.assertNotIn('tags', host_columns())
|
|
90
|
+
self.assertNotIn('tagging_tag', table_names())
|
|
91
|
+
self.assertNotIn('tagging_taggeditem', table_names())
|
|
92
|
+
self.create_report().process(find_updates=False)
|
|
93
|
+
self.assertTrue(Host.objects.filter(hostname='legacy.example.com').exists())
|
|
94
|
+
|
|
95
|
+
def test_noop_on_clean_schema(self):
|
|
96
|
+
"""Fresh installs have nothing to drop."""
|
|
97
|
+
before = host_columns()
|
|
98
|
+
self.run_migration()
|
|
99
|
+
self.assertEqual(host_columns(), before)
|
hosts/tests/test_models.py
CHANGED
|
@@ -543,6 +543,45 @@ class DebKernelUpdateTests(TestCase):
|
|
|
543
543
|
self.assertEqual(update.oldpackage, self.img_51)
|
|
544
544
|
self.assertEqual(update.newpackage, self.img_53)
|
|
545
545
|
|
|
546
|
+
def test_deb_reboot_required_newer_kernel_installed(self):
|
|
547
|
+
"""DEB: newer kernel installed but not running. Reboot required."""
|
|
548
|
+
host = self._create_host(
|
|
549
|
+
'6.8.0-51-generic',
|
|
550
|
+
[self.img_49, self.img_51, self.img_53],
|
|
551
|
+
)
|
|
552
|
+
repo_packages = Package.objects.filter(mirror=self.mirror)
|
|
553
|
+
kernel_packages = host.packages.filter(
|
|
554
|
+
name__name__startswith='linux-image-'
|
|
555
|
+
)
|
|
556
|
+
|
|
557
|
+
host.find_kernel_updates(kernel_packages, repo_packages)
|
|
558
|
+
|
|
559
|
+
self.assertTrue(host.reboot_required)
|
|
560
|
+
|
|
561
|
+
def test_deb_meta_package_does_not_require_reboot(self):
|
|
562
|
+
"""DEB: running the latest kernel with linux-image-generic installed.
|
|
563
|
+
|
|
564
|
+
The meta-package version (6.8.0.53.54) sorts above the kernel it
|
|
565
|
+
depends on (6.8.0-53.54) and must not flag a reboot.
|
|
566
|
+
"""
|
|
567
|
+
meta_name = PackageName.objects.create(name='linux-image-generic')
|
|
568
|
+
meta = Package.objects.create(
|
|
569
|
+
name=meta_name, arch=self.pkg_arch, epoch='',
|
|
570
|
+
version='6.8.0.53.54', release='', packagetype='D'
|
|
571
|
+
)
|
|
572
|
+
host = self._create_host(
|
|
573
|
+
'6.8.0-53-generic',
|
|
574
|
+
[self.img_49, self.img_53, meta],
|
|
575
|
+
)
|
|
576
|
+
repo_packages = Package.objects.filter(mirror=self.mirror)
|
|
577
|
+
kernel_packages = host.packages.filter(
|
|
578
|
+
name__name__startswith='linux-image-'
|
|
579
|
+
)
|
|
580
|
+
|
|
581
|
+
host.find_kernel_updates(kernel_packages, repo_packages)
|
|
582
|
+
|
|
583
|
+
self.assertFalse(host.reboot_required)
|
|
584
|
+
|
|
546
585
|
def test_deb_flavour_extraction(self):
|
|
547
586
|
"""Test get_deb_kernel_flavour helper."""
|
|
548
587
|
host = self._create_host('6.8.0-51-generic', [self.img_51])
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Copyright 2026 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from unittest.mock import patch
|
|
18
|
+
|
|
19
|
+
from django.test import TestCase
|
|
20
|
+
from django.utils import timezone
|
|
21
|
+
|
|
22
|
+
from arch.models import MachineArchitecture, PackageArchitecture
|
|
23
|
+
from domains.models import Domain
|
|
24
|
+
from errata.models import Erratum
|
|
25
|
+
from errata.utils import mark_errata_security_updates
|
|
26
|
+
from hosts.models import Host
|
|
27
|
+
from hosts.utils import get_or_create_host
|
|
28
|
+
from operatingsystems.models import OSRelease, OSVariant
|
|
29
|
+
from packages.models import Package, PackageName, PackageUpdate
|
|
30
|
+
from reports.models import Report
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@patch('hosts.models.Host.check_rdns')
|
|
34
|
+
class GetOrCreateHostTagTests(TestCase):
|
|
35
|
+
|
|
36
|
+
def setUp(self):
|
|
37
|
+
self.arch = MachineArchitecture.objects.create(name='x86_64')
|
|
38
|
+
self.domain = Domain.objects.create(name='example.com')
|
|
39
|
+
self.osvariant = OSVariant.objects.create(
|
|
40
|
+
name='Debian 13', osrelease=OSRelease.objects.create(name='Debian 13'),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
def host_tags(self, protocol, tags):
|
|
44
|
+
report = Report.objects.create(
|
|
45
|
+
host='tags.example.com', report_ip='192.168.1.10', os='Debian 13',
|
|
46
|
+
kernel='6.12.57+deb13-amd64', arch='x86_64', protocol=protocol, tags=tags,
|
|
47
|
+
)
|
|
48
|
+
host = get_or_create_host(report, self.arch, self.osvariant, self.domain)
|
|
49
|
+
return sorted(host.tags.names())
|
|
50
|
+
|
|
51
|
+
def test_protocol1_space_delimited(self, _):
|
|
52
|
+
self.assertEqual(self.host_tags('1', 'web prod'), ['prod', 'web'])
|
|
53
|
+
|
|
54
|
+
def test_protocol1_comma_delimited(self, _):
|
|
55
|
+
self.assertEqual(self.host_tags('1', 'web, prod'), ['prod', 'web'])
|
|
56
|
+
|
|
57
|
+
def test_protocol2_keeps_spaces_within_tags(self, _):
|
|
58
|
+
self.assertEqual(self.host_tags('2', 'my tag, web'), ['my tag', 'web'])
|
|
59
|
+
|
|
60
|
+
def test_protocol2_empty_tags(self, _):
|
|
61
|
+
self.assertEqual(self.host_tags('2', ''), [])
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class RefreshHostUpdateCountsTests(TestCase):
|
|
65
|
+
|
|
66
|
+
def test_counts_refreshed_after_errata_security_marking(self):
|
|
67
|
+
os_release = OSRelease.objects.create(name='Debian 13')
|
|
68
|
+
host = Host.objects.create(
|
|
69
|
+
hostname='h.example.com', ipaddress='192.0.2.1',
|
|
70
|
+
osvariant=OSVariant.objects.create(name='Debian 13', osrelease=os_release),
|
|
71
|
+
kernel='6.12.0', arch=MachineArchitecture.objects.create(name='x86_64'),
|
|
72
|
+
domain=Domain.objects.create(name='example.com'),
|
|
73
|
+
lastreport=timezone.now(),
|
|
74
|
+
)
|
|
75
|
+
pkg_arch = PackageArchitecture.objects.create(name='amd64')
|
|
76
|
+
name = PackageName.objects.create(name='curl')
|
|
77
|
+
old = Package.objects.create(name=name, arch=pkg_arch, epoch='', version='1', release='1', packagetype='D')
|
|
78
|
+
new = Package.objects.create(name=name, arch=pkg_arch, epoch='', version='2', release='1', packagetype='D')
|
|
79
|
+
update = PackageUpdate.objects.create(oldpackage=old, newpackage=new, security=False)
|
|
80
|
+
host.updates.add(update)
|
|
81
|
+
host.refresh_from_db()
|
|
82
|
+
self.assertEqual((host.sec_updates_count, host.bug_updates_count), (0, 1))
|
|
83
|
+
|
|
84
|
+
erratum = Erratum.objects.create(
|
|
85
|
+
name='DSA-0000-1', e_type='security', issue_date=timezone.now(), synopsis='curl',
|
|
86
|
+
)
|
|
87
|
+
erratum.fixed_packages.add(new)
|
|
88
|
+
mark_errata_security_updates(concurrent_processing=False)
|
|
89
|
+
|
|
90
|
+
host.refresh_from_db()
|
|
91
|
+
self.assertEqual((host.sec_updates_count, host.bug_updates_count), (1, 0))
|
hosts/utils.py
CHANGED
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
from socket import gaierror, gethostbyaddr, herror
|
|
19
19
|
|
|
20
20
|
from django.db import IntegrityError, transaction
|
|
21
|
+
from django.db.models import Count, OuterRef, Subquery
|
|
22
|
+
from django.db.models.functions import Coalesce
|
|
21
23
|
from taggit.models import Tag
|
|
24
|
+
from taggit.utils import parse_tags
|
|
22
25
|
|
|
23
26
|
from util import get_datetime_now
|
|
24
27
|
from util.logging import error_message, info_message
|
|
@@ -36,6 +39,36 @@ def update_rdns(host):
|
|
|
36
39
|
host.save()
|
|
37
40
|
|
|
38
41
|
|
|
42
|
+
def refresh_host_update_counts():
|
|
43
|
+
""" Recalculate cached security/bugfix update counts for all hosts.
|
|
44
|
+
Needed when PackageUpdate.security changes, as that does not fire
|
|
45
|
+
the Host.updates m2m_changed signal.
|
|
46
|
+
"""
|
|
47
|
+
from hosts.models import Host
|
|
48
|
+
through = Host.updates.through
|
|
49
|
+
|
|
50
|
+
def count_updates(security):
|
|
51
|
+
counts = through.objects.filter(
|
|
52
|
+
host_id=OuterRef('pk'),
|
|
53
|
+
packageupdate__security=security,
|
|
54
|
+
).values('host_id').annotate(c=Count('pk')).values('c')
|
|
55
|
+
return Coalesce(Subquery(counts), 0)
|
|
56
|
+
|
|
57
|
+
Host.objects.update(
|
|
58
|
+
sec_updates_count=count_updates(True),
|
|
59
|
+
bug_updates_count=count_updates(False),
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def get_report_tags(report):
|
|
64
|
+
""" Protocol 2 sends a list (stored comma-joined), protocol 1 sends the
|
|
65
|
+
raw config string, which may be comma or space delimited
|
|
66
|
+
"""
|
|
67
|
+
if report.protocol == '2':
|
|
68
|
+
return [t.strip() for t in (report.tags or '').split(',') if t.strip()]
|
|
69
|
+
return parse_tags(report.tags or '')
|
|
70
|
+
|
|
71
|
+
|
|
39
72
|
def get_or_create_host(report, arch, osvariant, domain):
|
|
40
73
|
""" Get or create a host from from a report
|
|
41
74
|
"""
|
|
@@ -46,6 +79,7 @@ def get_or_create_host(report, arch, osvariant, domain):
|
|
|
46
79
|
except herror:
|
|
47
80
|
report.host = report.report_ip
|
|
48
81
|
report.save()
|
|
82
|
+
host = None
|
|
49
83
|
try:
|
|
50
84
|
with transaction.atomic():
|
|
51
85
|
host, created = Host.objects.get_or_create(
|
|
@@ -64,7 +98,7 @@ def get_or_create_host(report, arch, osvariant, domain):
|
|
|
64
98
|
host.osvariant = osvariant
|
|
65
99
|
host.domain = domain
|
|
66
100
|
host.lastreport = report.created
|
|
67
|
-
host.tags.set(report
|
|
101
|
+
host.tags.set(get_report_tags(report), clear=True)
|
|
68
102
|
if report.reboot == 'True':
|
|
69
103
|
host.reboot_required = True
|
|
70
104
|
else:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|