From bb53ee921fc357decaa6b1f8660f9d6ce621eafb Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 31 Jul 2008 12:18:46 +0200 Subject: * python/apt_instmodule.cc: - fix bug in Rootdir cwd code --- python/apt_instmodule.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/apt_instmodule.cc') 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)); -- cgit v1.2.3