summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-27 17:15:01 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-27 17:15:01 +0000
commitde5d12f2abb91f335cabf8fb8c039155adaa80c2 (patch)
tree1a010204c2071ee258ee4f0a45e8e806651722c4
parentae5842185fc56ed17aa036975d687e1b13c1356a (diff)
downloadurpmi-de5d12f2abb91f335cabf8fb8c039155adaa80c2.tar
urpmi-de5d12f2abb91f335cabf8fb8c039155adaa80c2.tar.gz
urpmi-de5d12f2abb91f335cabf8fb8c039155adaa80c2.tar.bz2
urpmi-de5d12f2abb91f335cabf8fb8c039155adaa80c2.tar.xz
urpmi-de5d12f2abb91f335cabf8fb8c039155adaa80c2.zip
perl_checker cleanup
-rwxr-xr-xurpmi4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index f92f7c4d..84ddca70 100755
--- a/urpmi
+++ b/urpmi
@@ -25,7 +25,7 @@ use urpm::args;
use urpm::msg;
use urpm::media;
use urpm::select;
-use urpm::util qw(untaint difference2 member partition cat_);
+use urpm::util qw(untaint difference2 find member partition cat_);
use urpm::main_loop;
#- default options.
@@ -637,7 +637,7 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
my $msg = N("Please insert the medium named \"%s\"", $_[0]);
if ($ENV{DISPLAY} && $::gui) {
#- probably run from a drak tool
- (my $gmessage) = grep { -x $_ } '/usr/X11R6/bin/gmessage', '/usr/bin/gmessage';
+ (my $gmessage) = find { -x $_ } '/usr/X11R6/bin/gmessage', '/usr/bin/gmessage';
if ($gmessage) {
return system($gmessage, '-buttons', N("Ok") . ':1,' . N("Cancel") . ':0', "\n$msg\n");
}