summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-07-31 12:18:46 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-07-31 12:18:46 +0200
commitbb53ee921fc357decaa6b1f8660f9d6ce621eafb (patch)
treeacedbd2db5d8d5eb80b4616480ef4e126ed63da7 /python
parent19fdcab7acc03ceb6aaf57f7ccdd754a41aa7b6e (diff)
downloadpython-apt-bb53ee921fc357decaa6b1f8660f9d6ce621eafb.tar.gz
* python/apt_instmodule.cc:
- fix bug in Rootdir cwd code
Diffstat (limited to 'python')
-rw-r--r--python/apt_instmodule.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/apt_instmodule.cc b/python/apt_instmodule.cc
index 6e6c89dd..ea703b21 100644
--- a/python/apt_instmodule.cc
+++ b/python/apt_instmodule.cc
@@ -92,7 +92,7 @@ static PyObject *debExtractArchive(PyObject *Self,PyObject *Args)
FileFd Fd(fileno(PyFile_AsFile(File)),false);
debDebFile Deb(Fd);
if (_error->PendingError() == true) {
- if (cwd != NULL)
+ if (Rootdir != NULL)
chdir (cwd);
return HandleErrors(Py_BuildValue("b",false));
}
@@ -101,7 +101,7 @@ static PyObject *debExtractArchive(PyObject *Self,PyObject *Args)
pkgDirStream Extract;
res = Deb.ExtractArchive(Extract);
- if (cwd != NULL)
+ if (Rootdir != NULL)
chdir (cwd);
if (res == false)
return HandleErrors(Py_BuildValue("b",res));