diff options
| -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 b66f108e..a685e648 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,7 @@ python-apt (0.7.94.3) UNRELEASED; urgency=low - Fix fetch_source() to work when source name = binary name (LP: #552400). * python/cache.cc: - Check that 2nd argument to Cache.update() really is a SourceList object. + - Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource. * python/generic.cc: - Fix a memory leak when using old attribute names. - Map ArchiveURI property to archive_uri diff --git a/python/cache.cc b/python/cache.cc index e2f26dbb..93f9d3af 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -966,7 +966,7 @@ static PyObject *PackageFile_GetNotSource(PyObject *Self,void*) static PyObject *PackageFile_GetNotAutomatic(PyObject *Self,void*) { pkgCache::PkgFileIterator &File = GetCpp<pkgCache::PkgFileIterator>(Self); - return Py_BuildValue("i",(File->Flags & pkgCache::Flag::NotSource) != 0); + return PyBool_FromLong((File->Flags & pkgCache::Flag::NotAutomatic) != 0); } static PyObject *PackageFile_GetID(PyObject *Self,void*) |
