diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-09-02 19:35:25 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-09-02 19:35:25 +0000 |
commit | 6ce482199b17df3f8bcbda011e881e05f5ccae30 (patch) | |
tree | b2fd0a2fed51ed6a7134ddc3bd51f29cf417f105 | |
parent | 8998d75cf772db18917cc7b5c9ef92e28faa69c1 (diff) | |
download | anaconda-6ce482199b17df3f8bcbda011e881e05f5ccae30.tar.gz anaconda-6ce482199b17df3f8bcbda011e881e05f5ccae30.tar.xz anaconda-6ce482199b17df3f8bcbda011e881e05f5ccae30.zip |
I don't see how this could be any worse (#99324)
-rw-r--r-- | packages.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages.py b/packages.py index d29e55fff..ab8b36092 100644 --- a/packages.py +++ b/packages.py @@ -365,7 +365,7 @@ class InstallCallback: # RPM returns strange values sometimes if amount > total: amount = total - if not total: + if not total or total == 0 or total == "0": total = amount self.progress.setPackageScale(amount, total) elif (what == rpm.RPMCALLBACK_INST_CLOSE_FILE): |