aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-03-10 12:43:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-03-10 12:43:04 +0000
commitf4c637578e95ce4761696b911de5787c33cf8f31 (patch)
treeb79270d3b4e12915e0c43a65cc9f462e98917367
parent512d6865039cc26f2b10e56b406b3cf702be4a79 (diff)
downloadrpmdrake-f4c637578e95ce4761696b911de5787c33cf8f31.tar
rpmdrake-f4c637578e95ce4761696b911de5787c33cf8f31.tar.gz
rpmdrake-f4c637578e95ce4761696b911de5787c33cf8f31.tar.bz2
rpmdrake-f4c637578e95ce4761696b911de5787c33cf8f31.tar.xz
rpmdrake-f4c637578e95ce4761696b911de5787c33cf8f31.zip
when no hdlist, we don't need to parse synthesis, it has already been done and data is available
-rwxr-xr-xrpmdrake15
1 files changed, 1 insertions, 14 deletions
diff --git a/rpmdrake b/rpmdrake
index caec9f68..30529fcc 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -274,21 +274,8 @@ sub extract_header {
[ $p->changelog_name ], [ $p->changelog_text ], [ $p->changelog_time ])) });
$p->pack_header;
} else {
- my $synth = "$urpm->{statedir}/synthesis.$medium->{hdlist}";
- if (-r $synth) {
- require run_program;
- my $found;
- foreach (run_program::get_stdout("zcat $synth")) {
- if (!$found && /^\@info\@(.*)/) {
- $found = 1 if $1 =~ $name;
- } elsif ($found && /^\@summary\@(.*)/) {
- add2hash($pkg, { summary => $1, description => undef });
- }
- }
- } else {
header_non_available:
- add2hash($pkg, { summary => N("(Not available)"), description => undef });
- }
+ add2hash($pkg, { summary => $p->summary || N("(Not available)"), description => undef });
}
}
}