summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-09-02 19:35:25 +0000
committerJeremy Katz <katzj@redhat.com>2003-09-02 19:35:25 +0000
commit6ce482199b17df3f8bcbda011e881e05f5ccae30 (patch)
treeb2fd0a2fed51ed6a7134ddc3bd51f29cf417f105
parent8998d75cf772db18917cc7b5c9ef92e28faa69c1 (diff)
downloadanaconda-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.py2
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):