aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rpmdrake/pkg.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index e9e158d2..1b362789 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -119,9 +119,8 @@ sub extract_header {
my ($local_source, %xml_info_pkgs, $bar_id);
my $_statusbar_clean_guard = before_leaving { $bar_id and statusbar_msg_remove($bar_id) };
my $dir = urpm::file_from_local_url($medium->{url});
- if ($dir) {
- $local_source = "$dir/" . $p->filename;
- }
+ $local_source = "$dir/" . $p->filename if $dir;
+
if (-e $local_source) {
$bar_id = statusbar_msg(N("Getting information from %s...", $dir), 0);
$urpm->{log}("getting information from rpms from $dir");