aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-29 15:05:12 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-29 15:05:12 +0000
commitf4c040b6e791c04166ea2f1fb5a5461cfcdb44fe (patch)
tree67e5371e481560c103d61d5ad98af6fa527ae983 /Rpmdrake
parent9d9a2e7e937e7767d2bffe10d74bd3ae3450bfdc (diff)
downloadrpmdrake-f4c040b6e791c04166ea2f1fb5a5461cfcdb44fe.tar
rpmdrake-f4c040b6e791c04166ea2f1fb5a5461cfcdb44fe.tar.gz
rpmdrake-f4c040b6e791c04166ea2f1fb5a5461cfcdb44fe.tar.bz2
rpmdrake-f4c040b6e791c04166ea2f1fb5a5461cfcdb44fe.tar.xz
rpmdrake-f4c040b6e791c04166ea2f1fb5a5461cfcdb44fe.zip
(extract_header) simplify
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm5
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;
};