summaryrefslogtreecommitdiffstats
path: root/pm
diff options
context:
space:
mode:
Diffstat (limited to 'pm')
-rw-r--r--pm/MGATools/rpmsrate.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/pm/MGATools/rpmsrate.pm b/pm/MGATools/rpmsrate.pm
index cd6cb27..0eee957 100644
--- a/pm/MGATools/rpmsrate.pm
+++ b/pm/MGATools/rpmsrate.pm
@@ -107,7 +107,6 @@ sub check_if_expandable {
sub cleanrpmsrate {
my ($rpmsrate, $output, $norpmsrate, $reprpms, $o_urpm) = @_;
$norpmsrate ||= [];
- open(my $LOG, ">&STDERR");
my ($rsrate_ref, $poloc_ref) = preread_rpmsrate($rpmsrate, $norpmsrate);
my @rpmsrate = @$rsrate_ref;
@@ -246,7 +245,7 @@ sub cleanrpmsrate {
if (open my $A, ">$output") {
print $A $text;
} else {
- print $LOG "ERROR cleanrpmsrate: cannot open $rpmsrate for writing\n";
+ warn "ERROR cleanrpmsrate: cannot open $rpmsrate for writing\n";
print $text;
}
}