summaryrefslogtreecommitdiffstats
path: root/pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-15 08:21:06 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-15 08:21:06 +0000
commitafd675eb5499bf00b02db74aea6f3b5435afc153 (patch)
treefe1cc30ddbdb0e8b874027cd43f5cc5cc2f9fa13 /pm
parente568fcb1a8cf5e139e32211133fde4b10a2a80ef (diff)
downloadmgatools-afd675eb5499bf00b02db74aea6f3b5435afc153.tar
mgatools-afd675eb5499bf00b02db74aea6f3b5435afc153.tar.gz
mgatools-afd675eb5499bf00b02db74aea6f3b5435afc153.tar.bz2
mgatools-afd675eb5499bf00b02db74aea6f3b5435afc153.tar.xz
mgatools-afd675eb5499bf00b02db74aea6f3b5435afc153.zip
(cleanrpmsrate) simplify a statement
Diffstat (limited to 'pm')
-rw-r--r--pm/MGATools/rpmsrate.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/MGATools/rpmsrate.pm b/pm/MGATools/rpmsrate.pm
index 92857df..267598f 100644
--- a/pm/MGATools/rpmsrate.pm
+++ b/pm/MGATools/rpmsrate.pm
@@ -77,7 +77,7 @@ sub preread_rpmsrate {
sub cleanrpmsrate {
my ($rpmsrate, $output, $norpmsrate, $reprpms, $urpm) = @_;
$norpmsrate ||= [];
- my $LOG; open $LOG, ">&STDERR";
+ open(my $LOG, ">&STDERR");
my ($rsrate_ref, $poloc_ref) = preread_rpmsrate($rpmsrate, $norpmsrate);
my @rpmsrate = @$rsrate_ref;