pulp/pulp — pull request #358 by jdob (2013-03-01 19:36:10+00:00)
Title: Fixed progress bar call to not be a divide by zero for situations with 1

repo

The off by one handling was in the wrong area. Instead of making the amount completed correct, it originally lowered the upper boundary of how much work needed to be done.
That's wrong in its own right; after the first completed item it still showed 0%. It also had the added effect of causing the progress calculation to divide by zero in the event a single repo is specified.