summaryrefslogtreecommitdiffstats
path: root/bin/update-db
Commit message (Collapse)AuthorAgeFilesLines
* Fix print statements for Python 3.6 compatibilityBrian May2018-08-061-5/+6
|
* Update python exception syntax for Python 3.6 compatibilityBrian May2018-07-131-5/+5
|
* * bin/update-db:Florian Weimer2007-04-271-1/+5
| | | | | | | Report the location of parse errors in Debian's meta-data files. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@5745 e39458fd-73e7-0310-bf30-c45bca0a0e42
* Treat packages marked as <removed> as source packages.Florian Weimer2007-02-181-4/+0
| | | | | | | | | | | | | | | | | 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
* lib/python/security_db.py (DB.initSchema):Florian Weimer2005-12-231-2/+1
| | | | | | | | | | | | | | | | | Add index on package_notes(package) (no schema version bump needed). (DB.calculateDebsecan0): Renamed from DB.calculateDebsecan. (DB.calculateDebsecan1): New method which generates version 1 format (with pinning support wtc.). (DB.calculateDebsecan): Invokes both the version 0 and version 1 methods. bin/update-db: Adjust accordingly. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3129 e39458fd-73e7-0310-bf30-c45bca0a0e42
* bin/update-db:Florian Weimer2005-12-151-1/+2
| | | | | | | | | | | | Do not hard-code the database name. Use SQLite in non-synchronous mode. Makefile (all): Run bin/update-db on a copy of the database, so that we can continue to serve requests while the database is being updated. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3056 e39458fd-73e7-0310-bf30-c45bca0a0e42
* bin/update-db:Florian Weimer2005-12-151-1/+1
| | | | | | | Be less verbose. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3053 e39458fd-73e7-0310-bf30-c45bca0a0e42
* lib/python/security_db.py (DB):Florian Weimer2005-12-151-1/+6
| | | | | | | | | | | | | | | | | | | Bump schema version. (DB.initSchema): Add debsecan_data table. (DB.calculateDebsecan, DB.getDebsecan): New methods. bin/update-db: Invoke calculateDebsecan. bin/tracker_service.py (TrackerService): Add support for debsecan/* pages. (TrackerService.page_debsecan): New method. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3051 e39458fd-73e7-0310-bf30-c45bca0a0e42
* bin/update-db:Florian Weimer2005-09-241-0/+6
| | | | | | | Improve reporting of syntax errors. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@2155 e39458fd-73e7-0310-bf30-c45bca0a0e42
* lib/python/security_db.py (DB.initSchema):Florian Weimer2005-09-221-0/+4
| | | | | | | | | | | | | | | Add removed_packages table. (DB.readRemovedPackages, DB.getUnknownPackages): New. bin/update-db: Read removed packages. data/packages/removed-packages: New file. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@2088 e39458fd-73e7-0310-bf30-c45bca0a0e42
* Commit early if we are creating a new file. This means that the work isFlorian Weimer2005-09-151-0/+6
| | | | | | | not wasted if an error occurs later. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@2000 e39458fd-73e7-0310-bf30-c45bca0a0e42
* Implement bin/update-db, to update the database with a single command.Florian Weimer2005-09-151-0/+64
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

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