/[secure-testing]/lib/python/debian_support.py
ViewVC logotype

Log of /lib/python/debian_support.py

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 12909 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 30 18:47:34 2009 UTC (3 years, 7 months ago) by kees
File length: 14641 byte(s)
Diff to previous 11971
adjust hashlib/sha fallback to actually work correctly

Revision 11971 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 24 20:22:36 2009 UTC (3 years, 11 months ago) by fw
File length: 14638 byte(s)
Diff to previous 11970
lib/python/debian_support.py (updateFile): fix the fix

Also support both the hashlib and sha modules.

Revision 11970 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 24 20:18:48 2009 UTC (3 years, 11 months ago) by fw
File length: 14582 byte(s)
Diff to previous 11483
lib/python/debian_support.py (updateFile): work around broken diffs

Revision 11483 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 27 15:48:31 2009 UTC (4 years, 1 month ago) by kees
File length: 14494 byte(s)
Diff to previous 11217
NFUs: 31; adjust debian_support to use hashlib

Revision 11217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 14 17:11:04 2009 UTC (4 years, 3 months ago) by thijs
File length: 14486 byte(s)
Diff to previous 10680
more occurences of etch,lenny,squeeze

Revision 10680 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 19:39:29 2008 UTC (4 years, 5 months ago) by fw
File length: 14475 byte(s)
Diff to previous 10579
lib/python/debian_support.py: Handle failure to download patches

If the data is inconsistent, use a non-diffed download.

Revision 10579 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 2 21:13:06 2008 UTC (4 years, 5 months ago) by fw
File length: 14377 byte(s)
Diff to previous 8951
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.

Revision 8951 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 31 20:32:27 2008 UTC (4 years, 11 months ago) by fw
File length: 13831 byte(s)
Diff to previous 6994
lib/python/debian_support.py: Fix PseudoEnum.__repr__ method

Revision 6994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 17 10:15:30 2007 UTC (5 years, 7 months ago) by fw
File length: 13765 byte(s)
Diff to previous 5987
* 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.

Revision 5987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 10 12:08:43 2007 UTC (5 years, 11 months ago) by fw
File length: 16308 byte(s)
Diff to previous 5785
* lib/python/debian_support.py (Version):
  Support Unicode strings by converting them to UTF-8.

Revision 5785 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 5 08:58:05 2007 UTC (6 years ago) by fw
File length: 16179 byte(s)
Diff to previous 5635
* lib/python/debian_support.py (PackageFile.re_field):
  Field names are not necessarily separated by a space from the
  field content.

Revision 5635 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 8 21:47:10 2007 UTC (6 years, 1 month ago) by fw
File length: 16179 byte(s)
Diff to previous 4534
First round of adjustments for the etch release

Revision 4534 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 9 15:45:50 2006 UTC (6 years, 9 months ago) by stef-guest
File length: 16170 byte(s)
Diff to previous 4236
allow ~ in versions

Revision 4236 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 15 18:17:18 2006 UTC (6 years, 11 months ago) by fw
File length: 16168 byte(s)
Diff to previous 3049
* 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.

Revision 3049 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 15 11:33:46 2005 UTC (7 years, 5 months ago) by fw
File length: 15093 byte(s)
Diff to previous 2071
lib/python/debian_support.py (patchesFromEdScript):
  Update docstring.

Revision 2071 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 21 15:15:42 2005 UTC (7 years, 7 months ago) by fw
File length: 15065 byte(s)
Diff to previous 2045
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.

Revision 2045 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 19 15:12:37 2005 UTC (7 years, 8 months ago) by fw
File length: 14720 byte(s)
Diff to previous 1976
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.

Revision 1976 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 14 13:21:11 2005 UTC (7 years, 8 months ago) by fw
File length: 14184 byte(s)
Diff to previous 1967
lib/python/debian_support.py (Version):
  Add assert for empty version string.

Revision 1967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 13 21:19:29 2005 UTC (7 years, 8 months ago) by fw
File length: 14155 byte(s)
Diff to previous 1951
lib/python/debian_support.py (listReleases):
  Add potato.

Revision 1951 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 13 14:08:22 2005 UTC (7 years, 8 months ago) by fw
File length: 14145 byte(s)
Diff to previous 1943
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.

Revision 1943 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 13 07:45:17 2005 UTC (7 years, 8 months ago) by fw
File length: 14085 byte(s)
Diff to previous 1939
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.

Revision 1939 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 12 20:08:46 2005 UTC (7 years, 8 months ago) by fw
File length: 13343 byte(s)
Diff to previous 1937
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.)

Revision 1937 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 12 17:12:08 2005 UTC (7 years, 8 months ago) by fw
File length: 6950 byte(s)
Diff to previous 1934
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.

Revision 1934 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Sep 12 16:32:23 2005 UTC (7 years, 8 months ago) by fw
File length: 6183 byte(s)
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.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.5