diff options
author | Matt Wilson <msw@redhat.com> | 1999-12-08 04:08:29 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-12-08 04:08:29 +0000 |
commit | 8f916630fdc432263d149b71523265e4a8802150 (patch) | |
tree | 2effffb20767517e263dfc06aa85973f699f1084 /todo.py | |
parent | 4c735af87af1ebf89797d8f924d19888dfd82fb1 (diff) | |
download | anaconda-8f916630fdc432263d149b71523265e4a8802150.tar.gz anaconda-8f916630fdc432263d149b71523265e4a8802150.tar.xz anaconda-8f916630fdc432263d149b71523265e4a8802150.zip |
/zero protection
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |