patchman 4.0.18__py3-none-any.whl → 4.0.20__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-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/0010_synopsis_textfield.py +18 -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/models.py +55 -53
- 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/distros/alma.py +21 -22
- errata/sources/distros/arch.py +16 -11
- errata/sources/distros/debian.py +52 -34
- errata/sources/distros/rocky.py +31 -23
- errata/sources/distros/ubuntu.py +17 -19
- 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/sources/repos/yum.py +14 -14
- errata/tasks.py +14 -4
- 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
- errata/utils.py +44 -21
- etc/patchman/local_settings.py +1 -1
- etc/patchman/patchman-celery-beat.service +2 -0
- etc/patchman/patchman-celery-worker@.service +3 -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/0013_alter_hostrepo_unique_together_and_more.py +21 -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/models.py +62 -69
- hosts/tables.py +4 -2
- 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
- hosts/tests/test_models.py +106 -18
- hosts/views.py +3 -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/0007_alter_module_unique_together_module_unique_module.py +21 -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
- modules/models.py +6 -1
- 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/0012_alter_osrelease_unique_together_and_more.py +21 -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/models.py +6 -1
- 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
- operatingsystems/views.py +2 -2
- 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/0008_alter_package_unique_together_and_more.py +29 -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/models.py +12 -2
- packages/tables.py +95 -12
- packages/templates/packages/package_name_detail.html +3 -26
- packages/templates/packages/package_update_list.html +7 -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
- packages/tests/test_views.py +72 -0
- packages/urls.py +1 -0
- packages/utils.py +16 -0
- packages/views.py +64 -4
- 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__/settings.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/celery.py +14 -0
- patchman/receivers.py +4 -3
- patchman/settings.py +0 -1
- patchman/sqlite3/__pycache__/base.cpython-314.opt-1.pyc +0 -0
- patchman/sqlite3/base.py +5 -0
- patchman/urls.py +1 -2
- {patchman-4.0.18.data → patchman-4.0.20.data}/scripts/patchman +13 -2
- {patchman-4.0.18.dist-info → patchman-4.0.20.dist-info}/METADATA +4 -4
- {patchman-4.0.18.dist-info → patchman-4.0.20.dist-info}/RECORD +346 -331
- {patchman-4.0.18.dist-info → patchman-4.0.20.dist-info}/WHEEL +1 -1
- 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/models.py +1 -1
- 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
- reports/tests/test_parsing.py +31 -31
- reports/tests/test_utils.py +29 -0
- reports/utils.py +13 -10
- reports/views.py +4 -4
- 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/repo_types/yum.py +1 -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
- repos/utils.py +3 -0
- repos/views.py +2 -2
- 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/0011_alter_cvss_unique_together_and_more.py +29 -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/models.py +15 -3
- 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
- security/tests/test_models.py +2 -4
- security/utils.py +8 -4
- util/__init__.py +65 -11
- 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/context_processors.py +4 -4
- util/filterspecs.py +2 -1
- util/logging.py +15 -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/templates/navbar.html +7 -1
- 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.18.data → patchman-4.0.20.data}/scripts/patchman-manage +0 -0
- {patchman-4.0.18.data → patchman-4.0.20.data}/scripts/patchman-set-secret-key +0 -0
- {patchman-4.0.18.dist-info → patchman-4.0.20.dist-info}/licenses/AUTHORS +0 -0
- {patchman-4.0.18.dist-info → patchman-4.0.20.dist-info}/licenses/COPYING +0 -0
- {patchman-4.0.18.dist-info → patchman-4.0.20.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-314.opt-1.pyc
CHANGED
|
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
|
|
@@ -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
|
+
]
|
|
Binary file
|
errata/migrations/__pycache__/0002_alter_erratumreference_unique_together.cpython-314.opt-1.pyc
CHANGED
|
Binary file
|
|
Binary file
|
errata/migrations/__pycache__/0004_rename_packages_erratum_fixed_packages.cpython-314.opt-1.pyc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
errata/models.py
CHANGED
|
@@ -21,7 +21,7 @@ from django.urls import reverse
|
|
|
21
21
|
|
|
22
22
|
from errata.managers import ErratumManager
|
|
23
23
|
from packages.models import Package, PackageUpdate
|
|
24
|
-
from packages.utils import find_evr,
|
|
24
|
+
from packages.utils import find_evr, get_matching_packages_q
|
|
25
25
|
from security.models import CVE, Reference
|
|
26
26
|
from security.utils import get_or_create_cve, get_or_create_reference
|
|
27
27
|
from util import get_url
|
|
@@ -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.
|
|
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
|
|
@@ -64,55 +64,58 @@ class Erratum(models.Model):
|
|
|
64
64
|
|
|
65
65
|
def scan_for_security_updates(self):
|
|
66
66
|
if self.e_type == 'security':
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
security=False
|
|
67
|
+
fixed_pks = list(self.fixed_packages.values_list('pk', flat=True))
|
|
68
|
+
if fixed_pks:
|
|
69
|
+
self._mark_updates_security(
|
|
70
|
+
PackageUpdate.objects.filter(newpackage__in=fixed_pks, security=False)
|
|
71
71
|
)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
except IntegrityError as e:
|
|
77
|
-
error_message(text=e)
|
|
78
|
-
# a version of this update already exists that is
|
|
79
|
-
# marked as a security update, so delete this one
|
|
80
|
-
affected_update.delete()
|
|
81
|
-
for package in self.affected_packages.all():
|
|
82
|
-
affected_updates = PackageUpdate.objects.filter(
|
|
83
|
-
oldpackage=package,
|
|
84
|
-
security=False,
|
|
72
|
+
affected_pks = list(self.affected_packages.values_list('pk', flat=True))
|
|
73
|
+
if affected_pks:
|
|
74
|
+
self._mark_updates_security(
|
|
75
|
+
PackageUpdate.objects.filter(oldpackage__in=affected_pks, security=False)
|
|
85
76
|
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
77
|
+
|
|
78
|
+
def _mark_updates_security(self, updates):
|
|
79
|
+
""" Mark a queryset of PackageUpdates as security updates.
|
|
80
|
+
Handles IntegrityError by deleting duplicates.
|
|
81
|
+
"""
|
|
82
|
+
try:
|
|
83
|
+
updates.update(security=True)
|
|
84
|
+
except IntegrityError:
|
|
85
|
+
# fall back to individual saves to handle duplicates
|
|
86
|
+
for update in updates:
|
|
87
|
+
update.security = True
|
|
88
|
+
try:
|
|
89
|
+
update.save()
|
|
90
|
+
except IntegrityError as e:
|
|
91
|
+
error_message(text=e)
|
|
92
|
+
update.delete()
|
|
93
|
+
|
|
94
|
+
def fetch_osv_dev_data(self, session=None):
|
|
95
|
+
""" Fetch osv.dev JSON for this erratum. Returns parsed JSON or None.
|
|
96
|
+
"""
|
|
97
97
|
osv_dev_url = f'https://api.osv.dev/v1/vulns/{self.name}'
|
|
98
|
-
res = get_url(osv_dev_url)
|
|
98
|
+
res = get_url(osv_dev_url, session=session)
|
|
99
|
+
if res is None:
|
|
100
|
+
return None
|
|
99
101
|
if res.status_code == 404:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
data = res.content
|
|
103
|
-
osv_dev_json = json.loads(data)
|
|
104
|
-
self.parse_osv_dev_data(osv_dev_json)
|
|
102
|
+
return None
|
|
103
|
+
return json.loads(res.content)
|
|
105
104
|
|
|
106
105
|
def parse_osv_dev_data(self, osv_dev_json):
|
|
106
|
+
from django.db.models import Q
|
|
107
107
|
name = osv_dev_json.get('id')
|
|
108
108
|
if name != self.name:
|
|
109
109
|
error_message(text=f'Erratum name mismatch - {self.name} != {name}')
|
|
110
110
|
return
|
|
111
111
|
related = osv_dev_json.get('related')
|
|
112
112
|
if related:
|
|
113
|
+
cves = []
|
|
113
114
|
for vuln in related:
|
|
114
115
|
if vuln.startswith('CVE'):
|
|
115
|
-
|
|
116
|
+
cves.append(vuln)
|
|
117
|
+
for cve_id in cves:
|
|
118
|
+
self.add_cve(cve_id)
|
|
116
119
|
affected = osv_dev_json.get('affected')
|
|
117
120
|
if not affected:
|
|
118
121
|
return
|
|
@@ -129,30 +132,29 @@ class Erratum(models.Model):
|
|
|
129
132
|
for match in matching_packages:
|
|
130
133
|
fixed_packages.add(match)
|
|
131
134
|
affected_versions = package.get('versions')
|
|
132
|
-
if not affected_versions:
|
|
135
|
+
if not affected_versions or not fixed_packages:
|
|
133
136
|
continue
|
|
134
|
-
for
|
|
137
|
+
for fp in fixed_packages:
|
|
138
|
+
q = Q()
|
|
135
139
|
for version in affected_versions:
|
|
136
140
|
epoch, ver, rel = find_evr(version)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
for match in matching_packages:
|
|
146
|
-
affected_packages.add(match)
|
|
141
|
+
q |= Q(epoch=epoch, version=ver, release=rel)
|
|
142
|
+
matching_packages = get_matching_packages_q(
|
|
143
|
+
name=fp.name,
|
|
144
|
+
q=q,
|
|
145
|
+
arch=fp.arch,
|
|
146
|
+
p_type=fp.packagetype,
|
|
147
|
+
)
|
|
148
|
+
affected_packages.update(matching_packages)
|
|
147
149
|
self.add_affected_packages(affected_packages)
|
|
148
150
|
|
|
149
151
|
def add_fixed_packages(self, packages):
|
|
150
|
-
|
|
151
|
-
self.fixed_packages.add(
|
|
152
|
+
if packages:
|
|
153
|
+
self.fixed_packages.add(*packages)
|
|
152
154
|
|
|
153
155
|
def add_affected_packages(self, packages):
|
|
154
|
-
|
|
155
|
-
self.affected_packages.add(
|
|
156
|
+
if packages:
|
|
157
|
+
self.affected_packages.add(*packages)
|
|
156
158
|
|
|
157
159
|
def add_cve(self, cve_id):
|
|
158
160
|
""" Add a CVE to an Erratum object
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
errata/sources/distros/alma.py
CHANGED
|
@@ -14,19 +14,21 @@
|
|
|
14
14
|
# You should have received a copy of the GNU General Public License
|
|
15
15
|
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
16
|
|
|
17
|
-
import concurrent.futures
|
|
18
17
|
import json
|
|
19
18
|
|
|
20
|
-
from
|
|
21
|
-
|
|
22
|
-
from operatingsystems.utils import
|
|
19
|
+
from errata.utils import get_or_create_erratum
|
|
20
|
+
from modules.utils import get_matching_modules
|
|
21
|
+
from operatingsystems.utils import (
|
|
22
|
+
get_or_create_osrelease, normalize_el_osrelease,
|
|
23
|
+
)
|
|
23
24
|
from packages.models import Package
|
|
24
25
|
from packages.utils import get_or_create_package, parse_package_string
|
|
25
26
|
from patchman.signals import pbar_start, pbar_update
|
|
26
|
-
from util import fetch_content, get_setting_of_type, get_url
|
|
27
|
+
from util import fetch_content, get_setting_of_type, get_url, run_concurrently
|
|
28
|
+
from util.logging import clear_forked_pbar
|
|
27
29
|
|
|
28
30
|
|
|
29
|
-
def update_alma_errata(concurrent_processing=True):
|
|
31
|
+
def update_alma_errata(concurrent_processing=True, max_workers=25):
|
|
30
32
|
""" Update Alma Linux advisories from errata.almalinux.org:
|
|
31
33
|
https://errata.almalinux.org/8/errata.full.json
|
|
32
34
|
https://errata.almalinux.org/9/errata.full.json
|
|
@@ -40,7 +42,7 @@ def update_alma_errata(concurrent_processing=True):
|
|
|
40
42
|
)
|
|
41
43
|
for release in alma_releases:
|
|
42
44
|
advisories = fetch_alma_advisories(release)
|
|
43
|
-
process_alma_errata(release, advisories, concurrent_processing)
|
|
45
|
+
process_alma_errata(release, advisories, concurrent_processing, max_workers)
|
|
44
46
|
|
|
45
47
|
|
|
46
48
|
def fetch_alma_advisories(release):
|
|
@@ -54,11 +56,11 @@ def fetch_alma_advisories(release):
|
|
|
54
56
|
return advisories
|
|
55
57
|
|
|
56
58
|
|
|
57
|
-
def process_alma_errata(release, advisories, concurrent_processing):
|
|
59
|
+
def process_alma_errata(release, advisories, concurrent_processing, max_workers=25):
|
|
58
60
|
""" Process Alma Linux Errata
|
|
59
61
|
"""
|
|
60
62
|
if concurrent_processing:
|
|
61
|
-
process_alma_errata_concurrently(release, advisories)
|
|
63
|
+
process_alma_errata_concurrently(release, advisories, max_workers)
|
|
62
64
|
else:
|
|
63
65
|
process_alma_errata_serially(release, advisories)
|
|
64
66
|
|
|
@@ -73,24 +75,24 @@ def process_alma_errata_serially(release, advisories):
|
|
|
73
75
|
pbar_update.send(sender=None, index=i + 1)
|
|
74
76
|
|
|
75
77
|
|
|
76
|
-
def process_alma_errata_concurrently(release, advisories):
|
|
78
|
+
def process_alma_errata_concurrently(release, advisories, max_workers=25):
|
|
77
79
|
""" Process Alma Linux Errata concurrently
|
|
78
80
|
"""
|
|
79
|
-
connections.close_all()
|
|
80
81
|
elen = len(advisories)
|
|
81
82
|
pbar_start.send(sender=None, ptext=f'Processing {elen} Alma {release} Errata', plen=elen)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
args = [(release, advisory) for advisory in advisories]
|
|
84
|
+
for i, _ in enumerate(run_concurrently(process_alma_erratum_wrapper, args, max_workers)):
|
|
85
|
+
pbar_update.send(sender=None, index=i + 1)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def process_alma_erratum_wrapper(args):
|
|
89
|
+
clear_forked_pbar()
|
|
90
|
+
return process_alma_erratum(*args)
|
|
88
91
|
|
|
89
92
|
|
|
90
93
|
def process_alma_erratum(release, advisory):
|
|
91
94
|
""" Process a single Alma Linux Erratum
|
|
92
95
|
"""
|
|
93
|
-
from errata.utils import get_or_create_erratum
|
|
94
96
|
erratum_name = advisory.get('id')
|
|
95
97
|
issue_date = advisory.get('issued_date')
|
|
96
98
|
synopsis = advisory.get('title')
|
|
@@ -110,7 +112,6 @@ def process_alma_erratum(release, advisory):
|
|
|
110
112
|
def add_alma_erratum_osreleases(e, release):
|
|
111
113
|
""" Update OS Release for Alma Linux errata
|
|
112
114
|
"""
|
|
113
|
-
from operatingsystems.utils import normalize_el_osrelease
|
|
114
115
|
osrelease_name = normalize_el_osrelease(f'Alma Linux {release}')
|
|
115
116
|
osrelease = get_or_create_osrelease(name=osrelease_name)
|
|
116
117
|
e.osreleases.add(osrelease)
|
|
@@ -150,7 +151,6 @@ def add_alma_erratum_packages(e, advisory):
|
|
|
150
151
|
def add_alma_erratum_modules(e, advisory):
|
|
151
152
|
""" Parse and add modules for Alma Linux errata
|
|
152
153
|
"""
|
|
153
|
-
from modules.utils import get_matching_modules
|
|
154
154
|
fixed_packages = set()
|
|
155
155
|
modules = advisory.get('modules')
|
|
156
156
|
for module in modules:
|
|
@@ -160,8 +160,7 @@ def add_alma_erratum_modules(e, advisory):
|
|
|
160
160
|
stream = module.get('stream')
|
|
161
161
|
version = module.get('version')
|
|
162
162
|
matching_modules = get_matching_modules(name, stream, version, context, arch)
|
|
163
|
-
for match in matching_modules:
|
|
163
|
+
for match in matching_modules.prefetch_related('packages'):
|
|
164
164
|
for fixed_package in match.packages.all():
|
|
165
|
-
match.packages.add(fixed_package)
|
|
166
165
|
fixed_packages.add(fixed_package)
|
|
167
166
|
e.add_fixed_packages(fixed_packages)
|
errata/sources/distros/arch.py
CHANGED
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
import concurrent.futures
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from
|
|
21
|
-
|
|
20
|
+
from errata.utils import get_or_create_erratum
|
|
22
21
|
from operatingsystems.utils import get_or_create_osrelease
|
|
23
22
|
from packages.models import Package
|
|
24
23
|
from packages.utils import (
|
|
@@ -26,16 +25,17 @@ from packages.utils import (
|
|
|
26
25
|
)
|
|
27
26
|
from patchman.signals import pbar_start, pbar_update
|
|
28
27
|
from util import fetch_content, get_url
|
|
29
|
-
from util.logging import error_message
|
|
28
|
+
from util.logging import clear_forked_pbar, error_message
|
|
30
29
|
|
|
31
30
|
|
|
32
|
-
def update_arch_errata(concurrent_processing=False):
|
|
31
|
+
def update_arch_errata(concurrent_processing=False, max_workers=25):
|
|
33
32
|
""" Update Arch Linux Errata from the following sources:
|
|
34
33
|
https://security.archlinux.org/advisories.json
|
|
35
34
|
"""
|
|
36
35
|
add_arch_linux_osrelease()
|
|
37
36
|
advisories = fetch_arch_errata()
|
|
38
|
-
|
|
37
|
+
if advisories:
|
|
38
|
+
parse_arch_errata(advisories, concurrent_processing, max_workers)
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
def fetch_arch_errata():
|
|
@@ -44,14 +44,16 @@ def fetch_arch_errata():
|
|
|
44
44
|
"""
|
|
45
45
|
res = get_url('https://security.archlinux.org/advisories.json')
|
|
46
46
|
advisories = fetch_content(res, 'Fetching Arch Advisories')
|
|
47
|
+
if advisories is None:
|
|
48
|
+
return None
|
|
47
49
|
return json.loads(advisories)
|
|
48
50
|
|
|
49
51
|
|
|
50
|
-
def parse_arch_errata(advisories, concurrent_processing):
|
|
52
|
+
def parse_arch_errata(advisories, concurrent_processing, max_workers=25):
|
|
51
53
|
""" Parse Arch Linux Errata Advisories
|
|
52
54
|
"""
|
|
53
55
|
if concurrent_processing:
|
|
54
|
-
parse_arch_errata_concurrently(advisories)
|
|
56
|
+
parse_arch_errata_concurrently(advisories, max_workers)
|
|
55
57
|
else:
|
|
56
58
|
parse_arch_errata_serially(advisories)
|
|
57
59
|
|
|
@@ -67,15 +69,14 @@ def parse_arch_errata_serially(advisories):
|
|
|
67
69
|
pbar_update.send(sender=None, index=i + 1)
|
|
68
70
|
|
|
69
71
|
|
|
70
|
-
def parse_arch_errata_concurrently(advisories):
|
|
72
|
+
def parse_arch_errata_concurrently(advisories, max_workers=25):
|
|
71
73
|
""" Parse Arch Linux Errata Advisories concurrently
|
|
72
74
|
"""
|
|
73
75
|
osrelease = get_or_create_osrelease(name='Arch Linux')
|
|
74
|
-
connections.close_all()
|
|
75
76
|
elen = len(advisories)
|
|
76
77
|
pbar_start.send(sender=None, ptext=f'Processing {elen} Arch Advisories', plen=elen)
|
|
77
78
|
i = 0
|
|
78
|
-
with concurrent.futures.
|
|
79
|
+
with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
|
|
79
80
|
futures = [executor.submit(process_arch_erratum, advisory, osrelease) for advisory in advisories]
|
|
80
81
|
for future in concurrent.futures.as_completed(futures):
|
|
81
82
|
i += 1
|
|
@@ -85,7 +86,7 @@ def parse_arch_errata_concurrently(advisories):
|
|
|
85
86
|
def process_arch_erratum(advisory, osrelease):
|
|
86
87
|
""" Process a single Arch Linux Erratum
|
|
87
88
|
"""
|
|
88
|
-
|
|
89
|
+
clear_forked_pbar()
|
|
89
90
|
try:
|
|
90
91
|
name = advisory.get('name')
|
|
91
92
|
issue_date = advisory.get('date')
|
|
@@ -121,6 +122,8 @@ def add_arch_erratum_references(e, advisory):
|
|
|
121
122
|
e.add_reference('ASA', url)
|
|
122
123
|
raw_url = f'{url}/raw'
|
|
123
124
|
res = get_url(raw_url)
|
|
125
|
+
if res is None:
|
|
126
|
+
return
|
|
124
127
|
data = res.content
|
|
125
128
|
parse_arch_erratum_raw(e, data.decode())
|
|
126
129
|
|
|
@@ -152,6 +155,8 @@ def add_arch_erratum_packages(e, advisory):
|
|
|
152
155
|
group_id = advisory.get('group')
|
|
153
156
|
group_url = f'https://security.archlinux.org/group/{group_id}.json'
|
|
154
157
|
res = get_url(group_url)
|
|
158
|
+
if res is None:
|
|
159
|
+
return
|
|
155
160
|
data = res.content
|
|
156
161
|
group = json.loads(data)
|
|
157
162
|
packages = group.get('packages')
|