aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-06 14:11:21 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-06 14:11:21 +0000
commitd4198d9c31c15e4bf3cbac1a1a3c7384f7b76aca (patch)
tree781584ba73148ee5084ffbaf28d8a5f8a644899b
parenta0a23a5f52756fc33890cd5c0ea9cf43d187002b (diff)
downloadrpmdrake-d4198d9c31c15e4bf3cbac1a1a3c7384f7b76aca.tar
rpmdrake-d4198d9c31c15e4bf3cbac1a1a3c7384f7b76aca.tar.gz
rpmdrake-d4198d9c31c15e4bf3cbac1a1a3c7384f7b76aca.tar.bz2
rpmdrake-d4198d9c31c15e4bf3cbac1a1a3c7384f7b76aca.tar.xz
rpmdrake-d4198d9c31c15e4bf3cbac1a1a3c7384f7b76aca.zip
(extract_header) fallback to get XML metada when RPM is missing from
local medium (mainly needed by me on my devel machine)
-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;