summaryrefslogtreecommitdiffstats
path: root/bin/check-syntax
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2005-09-15 10:11:44 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2005-09-15 10:11:44 +0000
commit337f980d8e801258d8ca74d127aa8188af3679df (patch)
treedc569d699b67dfac8d23e80882f189419c9d56d0 /bin/check-syntax
parent442da033445af42da75fb4797f54615438a5703c (diff)
Implement bin/update-db, to update the database with a single command.
Most processing is skipped if no input files have been modified. lib/python/security_db.py (SchemaMismatch): New exception. (DB): Handle schema versioning. (DB.initSchema): Add subrelease column to source_packages and binary_packages. Set user_version. Remove stray commit. (DB._parseFile): Return information to the caller if the file is unchanged. (DB.readPackages): Move deletion code to callees. (DB._readSourcePackages, DB._readBinaryPackages): Implement incremental updates. Add subrelease. Need to invoke _clearVersions if any changes are made. (DB.deleteBugs, DB.finishBugs): Moved into readBugs. (DB.insertBugs): Rename ... (DB.readBugs): ... to this one. Implement incremental updates. Invoke _clearVersions if necessary. (DB._clearVersions): Add. (DB._updateVersions): Skip processing if _clearVersions has not been invoked. (DB.getVersion, DB.releaseContainsPackage, DB._synthesizeReleases): Obsolete, remove. (test): Update. lib/python/bugs.py (CANFile, CVEFile): Split into two classes, which handle the differences between the two files. bin/check-syntax: Update accordingly. bin/update-db: New database update script. Implements incremental updates. Makefile: Remove references to bin/update-packages. Simplify drastically. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@1994 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/check-syntax')
-rwxr-xr-xbin/check-syntax2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/check-syntax b/bin/check-syntax
index d996ae3664..8e1c69c2f5 100755
--- a/bin/check-syntax
+++ b/bin/check-syntax
@@ -46,7 +46,7 @@ def do_parse(f):
def parse_CAN(name):
- do_parse(bugs.CVEFile(name))
+ do_parse(bugs.CANFile(name))
def parse_CVE(name):
f = bugs.CVEFile(name)

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