summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-12-08 04:08:29 +0000
committerMatt Wilson <msw@redhat.com>1999-12-08 04:08:29 +0000
commit8f916630fdc432263d149b71523265e4a8802150 (patch)
tree2effffb20767517e263dfc06aa85973f699f1084
parent4c735af87af1ebf89797d8f924d19888dfd82fb1 (diff)
downloadanaconda-8f916630fdc432263d149b71523265e4a8802150.tar.gz
anaconda-8f916630fdc432263d149b71523265e4a8802150.tar.xz
anaconda-8f916630fdc432263d149b71523265e4a8802150.zip
/zero protection
-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)