diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-08-18 11:02:27 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-08-18 11:02:27 +0200 |
| commit | a0a68d0c2ee8757643aa422e9fb8cafcfa3f9b28 (patch) | |
| tree | 5865e9348ef6991e930bbd79507f62bb1ecffc82 /apt/progress | |
| parent | 2215d046a10508c0d3950db6d924727b2a2db336 (diff) | |
| parent | b901e22c3b747dd463bc13be10826bf90934c223 (diff) | |
| download | python-apt-a0a68d0c2ee8757643aa422e9fb8cafcfa3f9b28.tar.gz | |
merge from debian-sid
Diffstat (limited to 'apt/progress')
| -rw-r--r-- | apt/progress/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt/progress/__init__.py b/apt/progress/__init__.py index b9288c2c..337bd161 100644 --- a/apt/progress/__init__.py +++ b/apt/progress/__init__.py @@ -112,7 +112,7 @@ class FetchProgress(object): This happens eg. when the downloads fails or is completed. """ - def update_status_full(self, uri, descr, short_descr, status, file_size, + def update_status_full(self, uri, descr, short_descr, status, file_size, partial_size): """Called when the status of an item changes. @@ -291,7 +291,6 @@ class InstallProgress(DumbInstallProgress): except select.error, (errno_, errstr): if errno_ != errno.EINTR: raise - break self.updateInterface() try: (pid, res) = os.waitpid(self.child_pid, os.WNOHANG) @@ -300,6 +299,8 @@ class InstallProgress(DumbInstallProgress): except OSError, (errno_, errstr): if errno_ != errno.EINTR: raise + if errno_ == errno.ECHILD: + break return res def run(self, pm): |
