summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-04-01 15:21:39 +0200
committerJulian Andres Klode <jak@debian.org>2010-04-01 15:21:39 +0200
commitee15a84128199c2ef23afcf88dbc2f02df08adcc (patch)
treef6afe6820cce70c2d390abc643ae3b3c0da5c75e /python/cache.cc
parent0051fdbeff5e08248900cf0b8858178a3dceba7b (diff)
downloadpython-apt-ee15a84128199c2ef23afcf88dbc2f02df08adcc.tar.gz
Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource.
Diffstat (limited to 'python/cache.cc')
-rw-r--r--python/cache.cc2
1 files changed, 1 insertions, 1 deletions
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*)