diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-17 13:00:41 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-17 13:00:41 +0200 |
| commit | 5dbe872723f375db9f5d371051f6a9756fdc4c60 (patch) | |
| tree | 0b00913c18c227c026ae884c0461709cfc8032b2 /apt/progress/text.py | |
| parent | c7d7fbb650c8ff7c0e52c95723e1e65e295d55cf (diff) | |
| download | python-apt-5dbe872723f375db9f5d371051f6a9756fdc4c60.tar.gz | |
apt/progress/text.py: Don't display complete items in AcquireProgress.fetch
Diffstat (limited to 'apt/progress/text.py')
| -rw-r--r-- | apt/progress/text.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt/progress/text.py b/apt/progress/text.py index 4cdd266f..2a6b188d 100644 --- a/apt/progress/text.py +++ b/apt/progress/text.py @@ -110,6 +110,9 @@ class AcquireProgress(apt_pkg.AcquireProgress, TextProgress): def fetch(self, item): """Called when some of the item's data is fetched.""" + # It's complete already (e.g. Hit) + if item.owner.complete == True: + return item.owner.id = self._id self._id += 1 line = "Get:%s %s" % (item.owner.id, item.description) |
