diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-11-29 15:05:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-11-29 15:05:18 +0000 |
commit | e4314901670885719d5538c4e3e112793bac8398 (patch) | |
tree | f28d42cd671f01b3462dc5d544b38a40fe1b52b1 | |
parent | 1c51007b8e2ee6e35eb85efa52090b31fb9ea47a (diff) | |
download | rpmdrake-e4314901670885719d5538c4e3e112793bac8398.tar rpmdrake-e4314901670885719d5538c4e3e112793bac8398.tar.gz rpmdrake-e4314901670885719d5538c4e3e112793bac8398.tar.bz2 rpmdrake-e4314901670885719d5538c4e3e112793bac8398.tar.xz rpmdrake-e4314901670885719d5538c4e3e112793bac8398.zip |
(extract_header) simplify
-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 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"); |