summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/cache.py')
-rw-r--r--apt/cache.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/apt/cache.py b/apt/cache.py
index f507863c..ae4254e0 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -122,11 +122,7 @@ class Cache(object):
size=len(self._cache.packages)
for pkg in self._cache.packages:
if progress is not None and last+100 < i:
- if isinstance(progress, apt_pkg.OpProgress):
- progress.percent = i/float(size)*100
- progress.update()
- else:
- progress.update(i/float(size)*100)
+ progress.update(i/float(size)*100)
last=i
# drop stuff with no versions (cruft)
if len(pkg.version_list) > 0: