diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-01 10:11:06 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-01 10:11:06 +0200 |
| commit | 46ce7f8798bc963f1c647b21839488038a79d909 (patch) | |
| tree | a5fb5443b0bcdc02b35c5d83df16a06168911e38 /python/pkgsrcrecords.cc | |
| parent | 941a9debfcf884aebc616053774d0fe94c2e8f59 (diff) | |
| parent | c8bd732d5cb8be16ae48f8a72a4ed8a266b4ce36 (diff) | |
| download | python-apt-46ce7f8798bc963f1c647b21839488038a79d909.tar.gz | |
merged from the debian-sid branch
Diffstat (limited to 'python/pkgsrcrecords.cc')
| -rw-r--r-- | python/pkgsrcrecords.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc index aad3ef7e..4c889129 100644 --- a/python/pkgsrcrecords.cc +++ b/python/pkgsrcrecords.cc @@ -147,9 +147,9 @@ static PyObject *PkgSrcRecordsGetFiles(PyObject *Self,void*) { PyObject *v; for(unsigned int i=0;i<f.size();i++) { - v = Py_BuildValue("(siss)", + v = Py_BuildValue("(sNss)", f[i].MD5Hash.c_str(), - f[i].Size, + MkPyNumber(f[i].Size), f[i].Path.c_str(), f[i].Type.c_str()); PyList_Append(List, v); @@ -218,8 +218,10 @@ static PyObject *PkgSrcRecordsGetBuildDepends_old(PyObject *Self,void*) { PyObject *v; for(unsigned int i=0;i<bd.size();i++) { - v = Py_BuildValue("(ssii)", bd[i].Package.c_str(), - bd[i].Version.c_str(), bd[i].Op, bd[i].Type); + v = Py_BuildValue("(ssNN)", bd[i].Package.c_str(), + bd[i].Version.c_str(), + MkPyNumber(bd[i].Op), + MkPyNumber(bd[i].Type)); PyList_Append(List, v); Py_DECREF(v); } |
