diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-31 22:27:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-31 22:27:14 +0000 |
commit | eadd4b557088b142bd3fc0d56539a62679fd9128 (patch) | |
tree | 8f957058c7255ad64180e432bc164a64387c458f /Rpmdrake/pkg.pm | |
parent | 6113d4095b6559c031c970a2456f09bf6dbaa803 (diff) | |
download | rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar.gz rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar.bz2 rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.tar.xz rpmdrake-eadd4b557088b142bd3fc0d56539a62679fd9128.zip |
(perform_installation) minor readability improvement
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r-- | Rpmdrake/pkg.pm | 4 |
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: |