X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=bin%2Fparse-debtags-voc;h=b6391564402db3bde8a04d621cfe8273ccff9f7c;hp=ebd65471b33dd2af1c8beb61565e02c76cd4e969;hb=bcc99b0172de1ad2bbd76b5fe15abd3d920d1bb4;hpb=41ab743eae0a7875cf03a8b50a060da06af30b39 diff --git a/bin/parse-debtags-voc b/bin/parse-debtags-voc index ebd6547..b639156 100755 --- a/bin/parse-debtags-voc +++ b/bin/parse-debtags-voc @@ -1,8 +1,6 @@ #!/usr/bin/perl -w # Convert Debtags vocabulary.gz files into Sleepycat db files # -# $Id: parse-packages 227 2006-11-12 20:24:48Z djpig $ -# # Copyright (C) 2006 Frank Lichtenheld # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; use warnings; @@ -113,14 +111,7 @@ foreach (@tags) { my %content = ( vocabulary => \%voc, facets => \@facets, tags => \@tags, tags_by_facet => \%tags_by_facet ); -# needed to work around the limitations of the the FILTER syntax -$content{html_encode} = sub { return HTML::Entities::encode_entities(@_,'<>&"') }; -$content{uri_escape} = sub { return URI::Escape::uri_escape(@_) }; -$content{quotemeta} = sub { return quotemeta($_[0]) }; -$content{string2id} = sub { return &Packages::CGI::string2id(@_) }; - print TAGLST $template->page( 'tag_index', \%content ); -print TAGLST $template->trailer(); close TAGLST or warn "Couldn't close tag list: $!"; rename( "$wwwdir/debtags.en.html.new",