Anton Gladky pushed to branch fix_987283 at Debian Security Tracker /
security-tracker
Commits:
32e39839 by Anton Gladky at 2023-02-25T23:26:12+01:00
Check whether the ignored-debian-bug-packages is changed
- - - - -
1 changed file:
- lib/python/security_db.py
Changes:
=====================================
lib/python/security_db.py
=====================================
@@ -967,6 +967,12 @@ class DB:
if has_changed(path + filename):
unchanged = False
break
+
+ # Check if the ignored packages file has changed
+ source_ignore_unreported = "data/packages/ignored-debian-bug-packages"
+ if has_changed(path + filename):
+ unchanged = False
+
if unchanged:
if self.verbose:
print(" finished (no changes)")
@@ -993,6 +999,20 @@ class DB:
print(" update removed packages")
self.readRemovedAndIgnoredPackages(cursor, path +
source_removed_packages, table = "removed_packages")
+
+ # Add file print to database for ignored packages
+ current_print = self.filePrint(source_ignore_unreported)
+ cursor.execute(
+ """INSERT OR REPLACE INTO inodeprints (inodeprint, file)
+ VALUES (?, ?)""", (current_print, source_ignore_unreported))
+
+ if self.verbose:
+ print(" update ignored packages")
+
+ # Read list of packages, which should be ignored for the
status/unreported
+ self.readRemovedAndIgnoredPackages(cursor, source_ignore_unreported,
table = "ignored_packages")
+
+
errors = []
if self.verbose:
@@ -1330,10 +1350,6 @@ class DB:
alias = config.get_release_alias(release)
self._calcTesting(c, bug_name, alias, release)
- # Read list of packages, which should be ignored for the
status/unreported
- source_ignore_unreported = "data/packages/ignored-debian-bug-packages"
- self.readRemovedAndIgnoredPackages(cursor, source_ignore_unreported,
table = "ignored_packages")
-
return result
def _calcUnstable(self, cursor, bug_name):
View it on GitLab:
https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/32e398392b522bbe5184dfe1a44ca0dbfa82f6cf
--
View it on GitLab:
https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/32e398392b522bbe5184dfe1a44ca0dbfa82f6cf
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
debian-security-tracker-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-security-tracker-commits