summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-11-24 10:00:38 +0000
committerArch Librarian <arch@canonical.com>2004-11-24 10:00:38 +0000
commitd043347ad1c11127b129eb13ceb3579dfc48fce3 (patch)
tree1f9263eb2dbe289ecc7f750a054e8f2a3f82a881
parentdfa4cefaaab691880e2c24e603244b0485a181e0 (diff)
downloadpython-apt-d043347ad1c11127b129eb13ceb3579dfc48fce3.tar.gz
* Fix broken object initialization in sourcelist.cc and...
Author: mdz Date: 2003-12-26 17:04:22 GMT * Fix broken object initialization in sourcelist.cc and srcrecords.cc (Closes: #215792)
-rw-r--r--debian/changelog7
-rw-r--r--python/pkgsrcrecords.cc9
-rw-r--r--python/sourcelist.cc9
3 files changed, 11 insertions, 14 deletions
diff --git a/debian/changelog b/debian/changelog
index e7cd7c8d..534326b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-apt (0.5.9) unstable; urgency=low
+
+ * Fix broken object initialization in sourcelist.cc and srcrecords.cc
+ (Closes: #215792)
+
+ -- Matt Zimmerman <mdz@debian.org> Thu, 25 Dec 2003 12:12:04 -0800
+
python-apt (0.5.8) unstable; urgency=low
* Adjust build-depends to build with python2.3. No other changes.
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc
index 8f6dbbcf..f9a420b9 100644
--- a/python/pkgsrcrecords.cc
+++ b/python/pkgsrcrecords.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: pkgsrcrecords.cc,v 1.1 2003/07/23 02:20:24 mdz Exp $
+// $Id: pkgsrcrecords.cc,v 1.2 2003/12/26 17:04:22 mdz Exp $
/* ######################################################################
Package Records - Wrapper for the package records functions
@@ -108,11 +108,6 @@ PyTypeObject PkgSrcRecordsType =
PyObject *GetPkgSrcRecords(PyObject *Self,PyObject *Args)
{
- PyObject *Owner;
-// if (PyArg_ParseTuple(Args,"O!",&PkgCacheType,&Owner) == 0)
-// return 0;
-
- return HandleErrors(CppOwnedPyObject_NEW<PkgSrcRecordsStruct>(Owner,
- &PkgSrcRecordsType));
+ return CppPyObject_NEW<PkgSrcRecordsStruct>(&PkgSrcRecordsType);
}
diff --git a/python/sourcelist.cc b/python/sourcelist.cc
index 0bee8d8c..6f039244 100644
--- a/python/sourcelist.cc
+++ b/python/sourcelist.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: sourcelist.cc,v 1.1 2003/07/23 02:20:24 mdz Exp $
+// $Id: sourcelist.cc,v 1.2 2003/12/26 17:04:22 mdz Exp $
/* ######################################################################
Package Records - Wrapper for the package records functions
@@ -73,11 +73,6 @@ PyTypeObject PkgSourceListType =
PyObject *GetPkgSourceList(PyObject *Self,PyObject *Args)
{
- PyObject *Owner;
-// if (PyArg_ParseTuple(Args,"O!",&PkgCacheType,&Owner) == 0)
-// return 0;
-
- return HandleErrors(CppOwnedPyObject_NEW<PkgSourceListStruct>(Owner,
- &PkgSourceListType));
+ return CppPyObject_NEW<PkgSourceListStruct>(&PkgSourceListType);
}