From bf2a8d3268fcfd6ee90d65f4c55cd3b64b9d3461 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 19 Jun 2007 04:18:16 +0200 Subject: [PATCH] parse-packages: Unbreak descriptions handling Earlier I broke the descriptions handling by storing the description trimmed for search in place of the original one. --- bin/parse-packages | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/parse-packages b/bin/parse-packages index b0883a2..11e0ef0 100755 --- a/bin/parse-packages +++ b/bin/parse-packages @@ -269,6 +269,7 @@ print "Index $#descriptions descriptions\n"; for (my $i=1; $i<= $#descriptions; $i++) { # strip away additional data my ($only_desc, $pkg, $tags) = split /\000/o, $descriptions[$i], 3; + my $orig_desc = $only_desc; # WARNING: This needs to correspond with what happens in # Packages/Search.pm:do_xapian_search $only_desc =~ s#[^\w/+]+# #og; @@ -316,7 +317,7 @@ for (my $i=1; $i<= $#descriptions; $i++) { }; die $@ if $@; - $descriptions_db{$i} = $only_desc; + $descriptions_db{$i} = $orig_desc; } untie %descriptions_db; $xapian_db->flush; -- 2.39.2