Parent Directory | Revision Log
|Links to HEAD:||(view) (download) (as text) (annotate)|
adjust hashlib/sha fallback to actually work correctly
lib/python/debian_support.py (updateFile): fix the fix Also support both the hashlib and sha modules.
lib/python/debian_support.py (updateFile): work around broken diffs
NFUs: 31; adjust debian_support to use hashlib
more occurences of etch,lenny,squeeze
lib/python/debian_support.py: Handle failure to download patches If the data is inconsistent, use a non-diffed download.
lib/python/debian_support.py: Normalize version numbers before comparison In theory, this allows us to use the data for unstable for volatile and backports.org. However, more testing is required if this is indeed effective, and volatile does not actually use the version number scheme assumed in this change.
lib/python/debian_support.py: Fix PseudoEnum.__repr__ method
* lib/python/debian_support.py: Remove fallback for missing python-apt These days, we need the APT algorithm, not the one described in policy. Requiring python-apt leads to a clear error message up front, instead of an obscure one much later in the process.
* lib/python/debian_support.py (Version): Support Unicode strings by converting them to UTF-8.
* lib/python/debian_support.py (PackageFile.re_field): Field names are not necessarily separated by a space from the field content.
First round of adjustments for the etch release
allow ~ in versions
* lib/python/debian_support.py (Version): Implement using apt_pkg if APT is available. (version_compare): Add. * lib/python/security_db.py (DB._initFunctions): Directly invoke debian_support.version_compare.
lib/python/debian_support.py (patchesFromEdScript): Update docstring.
Make (bug_name, package, release) unique in the package_notes table. This is necessary because otherwise, the version tracking code does not work right. We do not lose any data by doing this; package status was already tracked by bug and not by package note. lib/python/bugs.py (PackageNote.merge, Bug.mergeNotes): New. (CANFile.finishBugs, CVEFile.finishBugs, DSAFile.finishBugs): New. Merge package notes for CAN, CVE and DSA files. lib/python/security_db.py (DB): Bump schema version. (DB.initSchema): Add the UNIQUE index mentioned above. lib/python/debian_support.py (mergeAsSets): New. (test): Test cases for mergeAsSets.
Fix bug in the version comparison algorithm. lib/python/debian_support.py (letterValue): New global variable. (Version.__parse_1): Use it to sort letters before non-letters. (test): New test case.
lib/python/debian_support.py (Version): Add assert for empty version string.
lib/python/debian_support.py (listReleases): Add potato.
First step towards calculating sets of vulnerable packages. This is currently directed towards testing (but does not yet process the secure-testing archive). A new table is added, so "make clean" is required. The remaining problem (besides potential bugs in the code) is how to deal with kernel updates, IOW how to detect them and ignore them. bin/update-vulnerabilities: New script, updates the bugs_status table. lib/python/bugs.py (PackageNote.affects): Fix all kinds of errors. The code never ran before, it seems. 8-/ (PackageNote.fixedVersion): Add. (BugBase.hasTODO): Add. (BugReservedCVE, BugRejectedCVE): Mark as not-for-us. (FileBase.rawRecords): Mark all un-annotated bugs after STOP: field as not-for-us. lib/python/security_db.py (DB.initSchema): Add table bugs_status. (DB.finishBugs): Run to completion even if there are conflicting CAN/CVE entries. (DB.getVersion, calculateVulnerabilities): New methods. (test): Update. lib/python/debian_support.py (Version): Add a type check. Makefile: Add stamps/calc-vulns target. bin/update-packages: Fix typo in comment.
bin/apt-update-file: Remove unnecessary import. lib/python/debian_support.py (listReleases): Add "sid". (replaceFile): Remove temporary file on exception. (updateFile): The file constructor raises IOError if the file does not exist. urllib does not raise a proper exception on 4xx errors. Handle varying whitespace in SHA1-Current field.
lib/python/debian_support.py: Add support for downloading package file diffs. bin/apt-update-file: Driver script for the new functionality. (I will use this functionality to implement package database replication. The goal is to keep a local copy of all the interesting data, so that we no longer need to consult madison etc.)
lib/python/debian_support.py (ParseError): Add class. lib/python/debian_support.py (PackageFile.raiseSyntaxError):o Raise ParseError instead of SyntaxError. bin/check-syntax, bin/update-bug-list-db: Handle the ParseError exception gracefully. lib/python/bugs.py (CVEFile.matchHeader): Check parentheses/brackets. data/CAN/list: Fix uncovered syntax errors.
Add list parser written in Python. "make check" runs a syntax check (no SQLite required). "make all" updates the SQLite database, and performs cross-list consistency checks. There is some support for loading Debian Package/Sources files, but this information is currently not used by the checks.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
|Powered by ViewVC 1.1.5|