diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-14 16:30:31 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-14 16:30:31 +0000 |
| commit | 44657add82d9df4d949f82c1b1d84667d9f1f784 (patch) | |
| tree | 1f50624b9fad517558177cb47677e88465333389 /apt/progress.py | |
| parent | b51b6bf42e6ccd487f902fe31685defa0bc6aedd (diff) | |
| download | python-apt-44657add82d9df4d949f82c1b1d84667d9f1f784.tar.gz | |
* try to read complete lines in update-interface
Diffstat (limited to 'apt/progress.py')
| -rw-r--r-- | apt/progress.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/progress.py b/apt/progress.py index 3ebe3664..40cf8e48 100644 --- a/apt/progress.py +++ b/apt/progress.py @@ -154,7 +154,8 @@ class InstallProgress(DumbInstallProgress): def updateInterface(self): if self.statusfd != None: try: - self.read += os.read(self.statusfd.fileno(),1) + while not self.read.endswith("\n"): + self.read += os.read(self.statusfd.fileno(),1) except OSError, (errno,errstr): # resource temporarly unavailable is ignored if errno != 11: |
