my ( $format, $keyword, $case, $subword, $exact, $searchon,
@suites, @sections, @archives, @archs );
-# my %params_def = ( keywords => { default => undef,
-# match => '^\s*([-+\@\w\/.:]+)\s*$',
-# var => \$keyword },
-# suite => { default => 'stable', match => '^([\w-]+)$',
-# alias => 'version', array => ',',
-# var => \@suites,
-# replace => { all => \@SUITES } },
-# archive => { default => 'all', match => '^([\w-]+)$',
-# array => ',', var => \@archives,
-# replace => { all => \@ARCHIVES } },
-# case => { default => 'insensitive', match => '^(\w+)$',
-# var => \$case },
-# official => { default => 0, match => '^(\w+)$' },
-# subword => { default => 0, match => '^(\w+)$',
-# var => \$subword },
-# exact => { default => undef, match => '^(\w+)$',
-# var => \$exact },
-# searchon => { default => 'all', match => '^(\w+)$',
-# var => \$searchon },
-# section => { default => 'all', match => '^([\w-]+)$',
-# alias => 'release', array => ',',
-# var => \@sections,
-# replace => { all => \@SECTIONS } },
-# arch => { default => 'any', match => '^(\w+)$',
-# array => ',', var => \@archs, replace =>
-# { any => \@ARCHITECTURES } },
-# format => { default => 'html', match => '^(\w+)$',
-# var => \$format },
-# );
+my %params_def = ( keywords => { default => undef,
+ match => '^\s*([-+\@\w\/.:]+)\s*$',
+ var => \$keyword },
+ suite => { default => 'stable', match => '^([\w-]+)$',
+ alias => 'version', array => ',',
+ var => \@suites,
+ replace => { all => \@SUITES } },
+ archive => { default => 'all', match => '^([\w-]+)$',
+ array => ',', var => \@archives,
+ replace => { all => \@ARCHIVES } },
+ case => { default => 'insensitive', match => '^(\w+)$',
+ var => \$case },
+ official => { default => 0, match => '^(\w+)$' },
+ subword => { default => 0, match => '^(\w+)$',
+ var => \$subword },
+ exact => { default => undef, match => '^(\w+)$',
+ var => \$exact },
+ searchon => { default => 'all', match => '^(\w+)$',
+ var => \$searchon },
+ section => { default => 'all', match => '^([\w-]+)$',
+ alias => 'release', array => ',',
+ var => \@sections,
+ replace => { all => \@SECTIONS } },
+ arch => { default => 'any', match => '^(\w+)$',
+ array => ',', var => \@archs, replace =>
+ { any => \@ARCHITECTURES } },
+ format => { default => 'html', match => '^(\w+)$',
+ var => \$format },
+ );
my %opts;
my %params = Packages::Search::parse_params( $input, \%params_def, \%opts );