commit | b1168ffadaff387a8b7ab9a9c861073035c505a8 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Thu Apr 16 08:00:42 2009 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Thu Apr 16 08:05:05 2009 -0700 |
tree | 8a922e173391861b2426c9700d9caa5765666249 | |
parent | 4c5c7aa74b2dec2cbfb6b6bd7e24d5922e92c112 [diff] |
Don't divide by zero in progress meter If there are no projects to fetch, the progress meter would have divided by zero during `repo sync`, and that throws a ZeroDivisionError. Instead we report the progress with an unknown amount remaining. Signed-off-by: Shawn O. Pearce <sop@google.com>