summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-12-07 10:40:14 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-12-07 10:40:14 +0000
commitcce2b71c2fd64c8587238178c27a049ec450ce07 (patch)
tree04e79ceab8ae37df0fea94b895ed7df7ec745bbf /python
parentb4141dda949890eaa50f0097b6fc6baeb3c489ac (diff)
downloadpython-apt-cce2b71c2fd64c8587238178c27a049ec450ce07.tar.gz
* make pkgAcqFile use the old interface so that we don't depend on a new apt and still work with breezys apt
Diffstat (limited to 'python')
-rw-r--r--python/acquire.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index 97064c43..65f8f2d7 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -250,12 +250,11 @@ PyObject *GetPkgAcqFile(PyObject *Self, PyObject *Args, PyObject * kwds)
uri = md5 = descr = shortDescr = destDir = destFile = "";
char * kwlist[] = {"owner","uri", "md5", "size", "descr", "shortDescr",
- "destDir", "destFile", NULL};
+ NULL};
- if (PyArg_ParseTupleAndKeywords(Args, kwds, "O!s|sissss", kwlist,
+ if (PyArg_ParseTupleAndKeywords(Args, kwds, "O!s|siss", kwlist,
&PkgAcquireType, &pyfetcher, &uri, &md5,
- &size, &descr, &shortDescr, &destDir,
- &destFile) == 0)
+ &size, &descr, &shortDescr) == 0)
return 0;
pkgAcquire *fetcher = GetCpp<pkgAcquire*>(pyfetcher);
@@ -264,10 +263,7 @@ PyObject *GetPkgAcqFile(PyObject *Self, PyObject *Args, PyObject * kwds)
md5, // md5
size, // size
descr, // descr
- shortDescr, // shortdescr
- destDir, // destdir
- destFile // destfile
- );
+ shortDescr); // short-desc
CppPyObject<pkgAcqFile*> *AcqFileObj = CppPyObject_NEW<pkgAcqFile*>(&PkgAcquireFileType);
AcqFileObj->Object = af;