diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/cache.cc | 4 | ||||
| -rw-r--r-- | python/depcache.cc | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc index a8e4bfd9..4fb3d389 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -546,7 +546,9 @@ static PyObject *VersionAttr(PyObject *Self,char *Name) return Py_BuildValue("i",Ver->Priority); else if (strcmp("PriorityStr",Name) == 0) return PyString_FromString(Ver.PriorityType()); - + else if (strcmp("Downloadable", Name) == 0) + return Py_BuildValue("b", Ver.Downloadable()); + PyErr_SetString(PyExc_AttributeError,Name); return 0; } diff --git a/python/depcache.cc b/python/depcache.cc index 2d7161a3..418ddd14 100644 --- a/python/depcache.cc +++ b/python/depcache.cc @@ -401,6 +401,7 @@ static PyObject *PkgDepCacheMarkedInstall(PyObject *Self,PyObject *Args) return HandleErrors(Py_BuildValue("b",state.NewInstall())); } + static PyObject *PkgDepCacheMarkedUpgrade(PyObject *Self,PyObject *Args) { pkgDepCache *depcache = GetCpp<pkgDepCache *>(Self); |
