aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM/Signature.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/URPM/Signature.pm b/URPM/Signature.pm
index 78fdbd5..1baa9a4 100644
--- a/URPM/Signature.pm
+++ b/URPM/Signature.pm
@@ -33,7 +33,7 @@ sub parse_armored_file {
#- check if an already opened file has been given directly.
unless (ref $file) {
my $F;
- open $F, $file;
+ open $F, $file or return ();
$file = $F;
}
@@ -55,8 +55,6 @@ sub parse_armored_file {
}
}
}
- close F;
-
@l;
}
@@ -96,7 +94,6 @@ sub parse_pubkeys {
#- import pubkeys only if it is needed.
sub import_needed_pubkeys {
my ($urpm, $l, %options) = @_;
- local (*F, $_);
my $block = '';
#- use the same database handle to avoid re-opening multiple times the database.