aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-31 22:27:14 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-31 22:27:14 +0000
commiteadd4b557088b142bd3fc0d56539a62679fd9128 (patch)
tree8f957058c7255ad64180e432bc164a64387c458f
parent6113d4095b6559c031c970a2456f09bf6dbaa803 (diff)
downloadrpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar
rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar.gz
rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar.bz2
rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar.xz
rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.zip
(perform_installation) minor readability improvement
-rw-r--r--Rpmdrake/pkg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 57b7fc5d..883113f0 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -808,10 +808,10 @@ you may now inspect some in order to take actions:"),
my @argv = ('--previous-priority-upgrade=' . $urpm->{options}{'priority-upgrade'},
grep { !/^--no-priority-upgrade$|--previous-priority-upgrade=/ } @Rpmdrake::init::ARGV_copy);
# remove "--emmbedded <id>" from argv:
- my $i;
+ my $i = 0;
foreach (@argv) {
+ splice @argv, $i, 2 if /^--embedded$/;
$i++;
- splice @argv, $i-1, 2 if /^--embedded$/;
}
alarm(0);
# remember not to ask again questions and the like: