diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-03-10 12:43:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-03-10 12:43:04 +0000 |
commit | f4c637578e95ce4761696b911de5787c33cf8f31 (patch) | |
tree | b79270d3b4e12915e0c43a65cc9f462e98917367 | |
parent | 512d6865039cc26f2b10e56b406b3cf702be4a79 (diff) | |
download | rpmdrake-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-x | rpmdrake | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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 }); } } } |