diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-30 20:31:47 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-30 20:31:47 +0200 |
| commit | 67c86eb63c861e9048c8b712654d65dd86d77330 (patch) | |
| tree | 33aa2bcb1481734920132478d52f6475cc6dc3e2 /apt/progress/old.py | |
| parent | 0a53a962ea50141dacd09e0e9f6228233c12e1f1 (diff) | |
| parent | 1d67c8142d295004c894473df5457b8ce9ed6197 (diff) | |
| download | python-apt-67c86eb63c861e9048c8b712654d65dd86d77330.tar.gz | |
Merge 0.7.11.1-0.7.12.0 from unstable.
Diffstat (limited to 'apt/progress/old.py')
| -rw-r--r-- | apt/progress/old.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/apt/progress/old.py b/apt/progress/old.py index 05597481..88957272 100644 --- a/apt/progress/old.py +++ b/apt/progress/old.py @@ -315,14 +315,20 @@ class InstallProgress(DumbInstallProgress): while True: try: select.select([self.statusfd], [], [], self.select_timeout) - except select.error, e: - if e[0] != errno.EINTR: + except select.error, (errno_, errstr): + if errno_ != errno.EINTR: raise self.update_interface() - (pid, res) = os.waitpid(self.child_pid, os.WNOHANG) - if pid == self.child_pid: - break + try: + (pid, res) = os.waitpid(self.child_pid, os.WNOHANG) + if pid == self.child_pid: + break + except OSError, (errno_, errstr): + if errno_ != errno.EINTR: + raise + if errno_ == errno.ECHILD: + break return res def run(self, pm): |
