diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-12 14:10:40 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-12 14:10:40 +0200 |
| commit | f75c59b6b250d14b1e52e1eebebfb5b11482d2ef (patch) | |
| tree | 07fb10c7a2e4df4e1f3c1ab3675c2a2f59c3b1c1 /apt/debfile.py | |
| parent | b94455e7afd0e08ce1a8aab890dbee0d42566d7b (diff) | |
| download | python-apt-f75c59b6b250d14b1e52e1eebebfb5b11482d2ef.tar.gz | |
tests/test_debfile.py: add fixture dpkg-status file to make tests work
Diffstat (limited to 'apt/debfile.py')
| -rw-r--r-- | apt/debfile.py | 2 |
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] |
