summaryrefslogtreecommitdiffstats
path: root/perl-install/c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-01-16 23:08:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-01-16 23:08:46 +0000
commit3b9b604eb1802c5f546bd444dae32e179bbb7d20 (patch)
treeb7b1cdf32f2e12fa65a932f24722e12a89b59bb3 /perl-install/c
parentcc29fc49a0427da3225c4d77f95827bed24073f7 (diff)
downloaddrakx-backup-do-not-use-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar
drakx-backup-do-not-use-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar.gz
drakx-backup-do-not-use-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar.bz2
drakx-backup-do-not-use-3b9b604eb1802c5f546bd444dae32e179bbb7d20.tar.xz
drakx-backup-do-not-use-3b9b604eb1802c5f546bd444dae32e179bbb7d20.zip
no_comment
Diffstat (limited to 'perl-install/c')
-rw-r--r--perl-install/c/stuff.xs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm
index 322266c67..69e7f2d78 100644
--- a/perl-install/c/stuff.xs.pm
+++ b/perl-install/c/stuff.xs.pm
@@ -550,7 +550,7 @@ rpmRunTransactions(trans, callbackOpen, callbackClose, callbackMessage, force)
} break;
case RPMCALLBACK_INST_PROGRESS:
- if ((amount - last_amount) * 4 / total) {
+ if (total && (amount - last_amount) * 4 / total) {
msg = "Progressing installing package";
param_s = n;
param_ul1 = &amount;