summaryrefslogtreecommitdiffstats
path: root/lib/python/bugs.py
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2007-02-18 16:50:24 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2007-02-18 16:50:24 +0000
commit3dca5be21f229998a75899d28f705f1611735acd (patch)
tree2632af519b92e99f7e31e6b1f65c18b91bce4d6d /lib/python/bugs.py
parent90714446f6f143406e90ab31101faa0688f47042 (diff)
Treat packages marked as <removed> as source packages.
This allows us to track firefox issues again. * lib/python/bugs.py (FileBase): Keep track of removed packages. * lib/python/security_db.py (DB.readBugs): Populate removed_packages table using <removed> entries. (DB.readRemovedPackages): Remove method. * bin/update-db: Do not call readRemovedPackages anymore. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@5470 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib/python/bugs.py')
-rw-r--r--lib/python/bugs.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 1db45c6770..b770d5f1ef 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -507,6 +507,10 @@ class FileBase(debian_support.PackageFile):
re_note = re.compile(r'^NOTE:\s+(.*)$')
re_todo = re.compile(r'^TODO:\s+(.*)$')
+ def __init__(self, name, fileObj=None):
+ debian_support.PackageFile.__init__(self, name, fileObj)
+ self.removed_packages = {}
+
def isUniqueName(self, name):
"""Returns True if the name is a real, unique name."""
return True
@@ -661,9 +665,13 @@ class FileBase(debian_support.PackageFile):
"ITP note needs Debian bug reference",
lineno)
pkg_notes.append(x)
- elif v in ('unfixed', 'removed'):
+ elif v == 'unfixed':
+ pkg_notes.append(PackageNoteParsed
+ (p, None, d, release=release))
+ elif v == 'removed':
pkg_notes.append(PackageNoteParsed
(p, None, d, release=release))
+ self.removed_packages[p] = True
else:
self.raiseSyntaxError(
"invalid special version %s in package entry"

© 2014-2024 Faster IT GmbH | imprint | privacy policy