diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-31 12:18:46 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-31 12:18:46 +0200 |
| commit | bb53ee921fc357decaa6b1f8660f9d6ce621eafb (patch) | |
| tree | acedbd2db5d8d5eb80b4616480ef4e126ed63da7 /python | |
| parent | 19fdcab7acc03ceb6aaf57f7ccdd754a41aa7b6e (diff) | |
| download | python-apt-bb53ee921fc357decaa6b1f8660f9d6ce621eafb.tar.gz | |
* python/apt_instmodule.cc:
- fix bug in Rootdir cwd code
Diffstat (limited to 'python')
| -rw-r--r-- | python/apt_instmodule.cc | 4 |
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)); |
