summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-03 13:04:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-03 13:04:46 +0000
commit8d5bf10babad2dc4b8ffac76636dde1c594f51dc (patch)
tree8df4af7c50b55af0ecfea8e48f8df81c747c55bd
parente1d535c87f59dd6afef003fdd7b2e2ae98849476 (diff)
downloadurpmi-8d5bf10babad2dc4b8ffac76636dde1c594f51dc.tar
urpmi-8d5bf10babad2dc4b8ffac76636dde1c594f51dc.tar.gz
urpmi-8d5bf10babad2dc4b8ffac76636dde1c594f51dc.tar.bz2
urpmi-8d5bf10babad2dc4b8ffac76636dde1c594f51dc.tar.xz
urpmi-8d5bf10babad2dc4b8ffac76636dde1c594f51dc.zip
Fix syntax error. Remove last occurence of a function from MDK::Common.
-rwxr-xr-xurpmi4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index 7c70e002..2a33f7c1 100755
--- a/urpmi
+++ b/urpmi
@@ -153,7 +153,7 @@ if (grep { $_ eq '--restricted' } @ARGV) {
foreach my $a (@ARGV) {
if ($a =~ /\.urpmi$/) {
open my $fh, '<', $a or do { warn "Can't open $a: $!\n"; next };
- push @ARGV_expanded, map { chomp; $_ } <$fh>;
+ push @ARGVcopy, map { chomp; $_ } <$fh>;
close $fh;
} else {
push @ARGVcopy, $a;
@@ -524,7 +524,7 @@ $urpm->copy_packages_of_removable_media(
my $msg2 = N("Press Enter when ready...");
if ($ENV{DISPLAY} && $::gui) {
#- probably run from a drak tool
- my $gmessage = find { -x $_ } '/usr/X11R6/bin/gmessage', '/usr/bin/gmessage';
+ (my $gmessage) = grep { -x $_ } '/usr/X11R6/bin/gmessage', '/usr/bin/gmessage';
if ($gmessage) {
my $m = to_utf8("\n$msg\n");
return system($gmessage, '-buttons', N("Ok") . ':1,' . N("Cancel") . ':0', $m);