summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 16d1b15e..7a1fa82d 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -302,7 +302,7 @@ class DebPackage(object):
"""
# show progress information as this step may take some time
size = float(len(self._cache))
- steps = int(size/50)
+ steps = max(int(size/50), 1)
debver = self._sections["Version"]
# store what we provide so that we can later check against that
provides = [ x[0][0] for x in self.provides]