From f4c040b6e791c04166ea2f1fb5a5461cfcdb44fe Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 29 Nov 2012 15:05:12 +0000 Subject: (extract_header) simplify --- Rpmdrake/pkg.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Rpmdrake/pkg.pm') 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; }; -- cgit v1.2.1