summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
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*)