summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/todo.py b/todo.py
index c0fb7c9e7..be3da4bf6 100644
--- a/todo.py
+++ b/todo.py
@@ -1318,7 +1318,8 @@ class ToDo:
fn = self.method.unlinkFilename(fn)
return self.rpmFD
elif (what == rpm.RPMCALLBACK_INST_PROGRESS):
- intf.setPackageScale(amount, total)
+ if total:
+ intf.setPackageScale(amount, total)
elif (what == rpm.RPMCALLBACK_INST_CLOSE_FILE):
os.close (self.rpmFD)
intf.completePackage(h)