diff options
| author | Michael Vogt <egon@tas> | 2006-10-30 16:59:56 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@tas> | 2006-10-30 16:59:56 +0100 |
| commit | 0b971142001adf68f9014ec2526ad2f4ac18e820 (patch) | |
| tree | 2dd978feb2b97aaf3c18cd61423acd3ae54b95f7 /DistUpgrade/DistUpgradeViewGtk.py | |
| parent | 79308ab3f3a6b9a6e242d55f5ff44d67670c5a69 (diff) | |
| download | python-apt-0b971142001adf68f9014ec2526ad2f4ac18e820.tar.gz | |
* DistUpgrade/DistUpgradeViewGtk.py:
- reset self.read when unexpected data arrives
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index a34e90f6..07a94110 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -271,6 +271,8 @@ class GtkInstallProgressAdapter(InstallProgress): InstallProgress.updateInterface(self) except ValueError, e: logging.error("got ValueError from InstallPrgoress.updateInterface. Line was '%s' (%s)" % (self.read, e)) + # reset self.read so that it can continue reading and does not loop + self.read = "" # check if we haven't started yet with packages, pulse then if self.start_time == 0.0: self.progress.pulse() |
