diff options
| author | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-24 21:39:38 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-24 21:39:38 +0200 |
| commit | e671440114f46b0c6a961cd995a0b7d8bfb3f2ba (patch) | |
| tree | 579dcf21e32ba7619e410a8a6d34d1a0a8b269b4 /apt | |
| parent | ed4c10097afd41b6af0c5befcff3fa2bd78c82cd (diff) | |
| download | python-apt-e671440114f46b0c6a961cd995a0b7d8bfb3f2ba.tar.gz | |
Revert the os._exit call in the child of the progress
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/progress.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/progress.py b/apt/progress.py index 2ef100a8..09a3fb06 100644 --- a/apt/progress.py +++ b/apt/progress.py @@ -214,7 +214,7 @@ class InstallProgress(DumbInstallProgress): if pid == 0: # child res = pm.DoInstall(self.writefd) - os.exit(res) + os._exit(res) self.child_pid = pid res = self.waitChild() return res @@ -249,7 +249,7 @@ class DpkgInstallProgress(InstallProgress): # child res = os.system("/usr/bin/dpkg --status-fd %s -i %s" % \ (self.writefd, self.debfile)) - os.exit(res) + os._exit(os.WEXITSTATUS(res)) self.child_pid = pid res = self.waitChild() return res |
