]> git.deb.at Git - deb/packages.git/blobdiff - cgi-bin/show_filelist.pl
Use exact wallclocktime when available (it's in the 'perl' package)
[deb/packages.git] / cgi-bin / show_filelist.pl
index fd75a0491775aceb49b093990d62c7a7a6276136..ffb93ee0fbf7e0045a724d375eceb293e02ab464 100755 (executable)
@@ -20,7 +20,7 @@ use POSIX;
 use URI::Escape;
 use HTML::Entities;
 use DB_File;
-use Benchmark;
+use Benchmark ':hireswallclock';
 
 use Deb::Versions;
 use Packages::Config qw( $DBDIR $ROOT @SUITES @ARCHIVES @SECTIONS
@@ -80,7 +80,8 @@ if ($params{errors}{arch}) {
     $arch = '';
 }
 
-my $st0 = new Benchmark;
+print $input->header( -charset => 'utf-8' );
+
 print Packages::HTML::header( title => "Filelist of package $pkg in $suite of arch $arch",
                              lang => 'en',
                              #desc => $short_desc,
@@ -95,11 +96,10 @@ print_debug();
 print_notes();
 
 unless (@Packages::CGI::fatal_errors) {
-    tie my %contents, 'DB_File', "$DBDIR/packages_contents_${suite}_${arch}.db",
+    tie my %contents, 'DB_File', "$DBDIR/contents/filelists_${suite}_${arch}.db",
        O_RDONLY, 0666, $DB_BTREE
-       or die "couldn't tie DB $DBDIR/packages_contents_${suite}_${arch}.db: $!";
+       or die "Invalid suite/arch combination";
 
-    my $cont = $contents{$pkg};
     print "No such package in this suite on this arch" if not exists $contents{$pkg};
     my @files = unpack "L/(CC/a)", $contents{$pkg};
     my $file = "";