summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-03 10:34:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-03 10:34:36 +0000
commitd23699cebec60afd124210d71e2d12606dc6473a (patch)
treea60ac17ab1c4c3d140861908ee7272f846f19cd0
parent5234de9b98ef147c8533b2829cb5083c45e46b46 (diff)
downloadurpmi-d23699cebec60afd124210d71e2d12606dc6473a.tar
urpmi-d23699cebec60afd124210d71e2d12606dc6473a.tar.gz
urpmi-d23699cebec60afd124210d71e2d12606dc6473a.tar.bz2
urpmi-d23699cebec60afd124210d71e2d12606dc6473a.tar.xz
urpmi-d23699cebec60afd124210d71e2d12606dc6473a.zip
nicer var names
-rwxr-xr-xurpmi6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpmi b/urpmi
index 3792230c..edcc9043 100755
--- a/urpmi
+++ b/urpmi
@@ -539,11 +539,11 @@ if (@ask_remove) {
{
my $db = urpm::db_open_or_die_($urpm);
urpm::select::find_removed_from_basesystem($urpm, $db, $state, sub {
- my $urpm = shift @_;
- foreach (@_) {
+ my ($urpm, @pkgs) = @_;
+ foreach (@pkgs) {
$urpm->{error}(N("removing package %s will break your system", $_));
}
- @_ and $no_remove = 1;
+ @pkgs and $no_remove = 1;
});
}
my $list = urpm::select::translate_why_removed($urpm, $state, @ask_remove);