From f4c637578e95ce4761696b911de5787c33cf8f31 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 10 Mar 2004 12:43:04 +0000 Subject: when no hdlist, we don't need to parse synthesis, it has already been done and data is available --- rpmdrake | 15 +-------------- 1 file changed, 1 insertion(+), 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 }); } } } -- cgit v1.2.1