summaryrefslogtreecommitdiff
path: root/apt/progress.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-12 12:28:50 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-12 12:28:50 +0200
commit8572d7a6dff1c3b5e8b27fcfbc36bd13232be598 (patch)
tree09d7faf261bbfaaa354a1875ab5381dd24cc3db1 /apt/progress.py
parentd65882227dd3201c03c87922391d1ad8d21ee84e (diff)
downloadpython-apt-8572d7a6dff1c3b5e8b27fcfbc36bd13232be598.tar.gz
* debian/control:
- tightend dependency * apt/progress.py: - use os._exit() instead of sys.exit() (lp: 53298)
Diffstat (limited to 'apt/progress.py')
-rw-r--r--apt/progress.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/apt/progress.py b/apt/progress.py
index 4119067c..d69ca6e6 100644
--- a/apt/progress.py
+++ b/apt/progress.py
@@ -19,7 +19,12 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-import sys, apt_pkg, os, fcntl, string, re
+import sys
+import os
+import re
+import fcntl
+import string
+import apt_pkg
class OpProgress(object):
""" Abstract class to implement reporting on cache opening
@@ -199,7 +204,7 @@ class InstallProgress(DumbInstallProgress):
if pid == 0:
# child
res = pm.DoInstall(self.writefd)
- sys.exit(res)
+ os._exit(res)
self.child_pid = pid
res = self.waitChild()
return res