/[secure-testing]
ViewVC logotype

Revision 1994


Jump to revision: Previous Next
Author: fw
Date: Thu Sep 15 10:11:44 2005 UTC (7 years, 9 months ago)
Changed paths: 8
Log Message:
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.

Changed paths:

Path Details
DirectoryMakefile modified , text changed
Directorybin/check-syntax modified , text changed
Directorybin/update-bug-list-db deleted
Directorybin/update-db added
Directorybin/update-packages deleted
Directorybin/update-vulnerabilities deleted
Directorylib/python/bugs.py modified , text changed
Directorylib/python/security_db.py modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.5