summaryrefslogtreecommitdiff
path: root/apt/progress.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-02-14 16:30:31 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2006-02-14 16:30:31 +0000
commit44657add82d9df4d949f82c1b1d84667d9f1f784 (patch)
tree1f50624b9fad517558177cb47677e88465333389 /apt/progress.py
parentb51b6bf42e6ccd487f902fe31685defa0bc6aedd (diff)
downloadpython-apt-44657add82d9df4d949f82c1b1d84667d9f1f784.tar.gz
* try to read complete lines in update-interface
Diffstat (limited to 'apt/progress.py')
-rw-r--r--apt/progress.py3
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: