diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-10 09:21:13 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-10 09:21:13 +0000 |
commit | 651910d3e6ae5a8924f68c5abfbd34374a76532d (patch) | |
tree | 457acb30852a3bede3e467c3bab4e4c51fb5463a | |
parent | b306c1a29317c0f0af8d07d2b9026959c339d033 (diff) | |
download | urpmi-651910d3e6ae5a8924f68c5abfbd34374a76532d.tar urpmi-651910d3e6ae5a8924f68c5abfbd34374a76532d.tar.gz urpmi-651910d3e6ae5a8924f68c5abfbd34374a76532d.tar.bz2 urpmi-651910d3e6ae5a8924f68c5abfbd34374a76532d.tar.xz urpmi-651910d3e6ae5a8924f68c5abfbd34374a76532d.zip |
perl_checker compliance
-rw-r--r-- | urpm.pm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -460,6 +460,7 @@ sub configure { foreach my $dir (grep { -d $_ } map { "$_/urpm" } @INC) { my $dh = $urpm->opendir_safe($dir); if ($dh) { + local $_; while (defined ($_ = readdir $dh)) { #- load parallel modules /parallel.*\.pm$/ && -f "$dir/$_" or next; $urpm->{log}->(N("examining parallel handler in file [%s]", "$dir/$_")); @@ -1374,6 +1375,7 @@ this could happen if you mounted manually the directory when creating the medium } else { { my %f; + local $_; #- help perl_checker not warning "undeclared $_" in wanted callback below File::Find::find( { wanted => sub { -f $_ && /\.rpm$/ and $f{"$File::Find::dir/$_"} = 1 }, @@ -3440,7 +3442,7 @@ sub get_md5sum { my ($retrieved_md5sum) = map { my ($md5sum, $file) = m|(\S+)\s+(?:\./)?(\S+)|; - $file && $file eq $basename ? $md5sum : (); + $file && $file eq $basename ? $md5sum : @{[]}; } cat_($path); $retrieved_md5sum; |