aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 87553e65..130b7acb 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -109,8 +109,11 @@ sub extract_header {
my $medium = pkg2medium($p, $urpm);
my ($local_source, %xml_info_pkgs, $bar_id);
my $_statusbar_clean_guard = before_leaving { $bar_id and statusbar_msg_remove($bar_id) };
- if (my $dir = urpm::file_from_local_url($medium->{url})) {
+ my $dir = urpm::file_from_local_url($medium->{url});
+ if ($dir) {
$local_source = "$dir/" . $p->filename;
+ }
+ if (-e $local_source) {
$urpm->{log}("getting information from rpms from $dir");
} else {
my $gurpm;