$SUITES = array('oldstable', 'stable', 'testing', 'unstable', 'experimental');
$pi = substr($_SERVER["PATH_INFO"], 1);
$elems = explode('/', $pi);
-if (!$elems) {
+if ($pi == "") {
readfile("index.html");
exit;
} elseif ($pi == 'search') {
use Deb::Versions;
use Packages::Search qw( :all );
use Packages::HTML ();
+use Packages::Page ();
my $HOME = "http://www.debian.org";
my $ROOT = "";
my %ARCHITECTURES = map { $_ => 1 } @ARCHITECTURES;
-
$ENV{PATH} = "/bin:/usr/bin";
# Read in all the variables set by the form
}
while (<C>) {
$topdir = $1 if (/^\s*topdir="?(.*)"?\s*$/);
+ $ROOT = $1 if /^\s*root="?(.*)"?\s*$/;
}
close (C);
my $DBDIR = $topdir . "/files/db";
+my $DL_URL = "$package/download";
+my $FILELIST_URL = "$package/files";
+my $DDPO_URL = "http://qa.debian.org/developer.php?email=";
+
my $obj1 = tie my %packages, 'DB_File', "$DBDIR/packages_small.db", O_RDONLY, 0666, $DB_BTREE
or die "couldn't tie DB $DBDIR/packages_small.db: $!";
sub showpackage {
my ( $pkg ) = @_;
+
+ my $env;
my $name = $pkg->get_name;
|| $env->{db}->is_translated( $name, $d->{version},
${$versions{v2a}{$d->{version}}}[0],
$lang )) {
- $files->delete_file( $filename )
- if $files->file_exists( $filename );
next;
}
progress() if $env->{opts}{progress};
}
$package_page .= trailer( '../..', $name, $lang, @tr_langs );
- #
- # write file
- #
- $files->update_file( $filename, $package_page );
-
#
# create data sheet
#