diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-13 19:28:33 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-13 19:28:33 +0200 |
| commit | ebedf54fd4c72bfbf5c5e60d3d908cd66acace95 (patch) | |
| tree | cb9651c1dd64a0326d1cca31c560c727eebf8b8b | |
| parent | 62d7f4b80d56ef1e27039441cd6584cfb71d6502 (diff) | |
| download | python-apt-ebedf54fd4c72bfbf5c5e60d3d908cd66acace95.tar.gz | |
* python/cache.cc: Add support for the Breaks fields
This also fixes problems on packages with Breaks field, where the lookup
of the field name leads to some unprintable characters (because the index
exceeds the number of items).
| -rw-r--r-- | debian/changelog | 1 | ||||
| -rw-r--r-- | python/cache.cc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index dc8d1545..29927989 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ python-apt (0.7.11) UNRELEASED; urgency=low - Support 'key in mapping' for TagSections * Replace support for file objects with a more generic support for any object providing a fileno() method and for file descriptors (integers). + * Add support for the Breaks fields -- Julian Andres Klode <jak@debian.org> Mon, 13 Apr 2009 18:08:10 +0200 diff --git a/python/cache.cc b/python/cache.cc index 0c59f561..4db097c7 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -502,7 +502,7 @@ static PyObject *MakeDepends(PyObject *Owner,pkgCache::VerIterator &Ver, { "", "Depends","PreDepends","Suggests", "Recommends","Conflicts","Replaces", - "Obsoletes" + "Obsoletes", "Breaks" }; PyObject *Dep = PyString_FromString(Types[Start->Type]); LastDepType = Start->Type; |
