aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xRpmdrake/gurpm.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rpmdrake/gurpm.pm b/Rpmdrake/gurpm.pm
index 4a3468bf..255cee11 100755
--- a/Rpmdrake/gurpm.pm
+++ b/Rpmdrake/gurpm.pm
@@ -57,7 +57,10 @@ sub label {
}
sub progress {
- $progressbar->set_fraction($_[0]);
+ my ($fraction) = @_;
+ $fraction = 0 if $fraction < 0;
+ $fraction = 1 if 1 < $fraction;
+ $progressbar->set_fraction($fraction);
$mainw->flush;
}