diff options
-rw-r--r-- | Rpmdrake/pkg.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index a4027865..a88c7254 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -152,9 +152,8 @@ sub extract_header { } #- even if non-root, search for a header in the global cachedir - my $file = $local_source; - if (-s $file) { - $p->update_header($file) or do { + if (-s $local_source) { + $p->update_header($local_source) or do { warn "Warning, could not extract header for $name from $medium!"; goto header_non_available; }; |