# Should run after the mirror pulse. The mirror tends to finish by
# the ctime of rsync.log.* in ~archvsync.
-topdir=/org/packages.debian.org
+source config.sh
files=$topdir/files
logs=$files/logs
log=$logs/cron.log
# see http://www.fsf.org/copyleft/gpl.html for a copy of the license
use strict;
+use lib '../lib';
use CGI qw( -oldstyle_urls );
use CGI::Carp qw( fatalsToBrowser );
use POSIX;
# see http://www.fsf.org/copyleft/gpl.html for a copy of the license
use strict;
+use lib '../lib';
use CGI qw( -oldstyle_urls );
use CGI::Carp qw( fatalsToBrowser );
use POSIX;
sub msg {
push @msgs, $_[0];
}
+sub note {
+ push @notes, $_[0];
+}
sub notes {
push @notes, [ @_ ];
}
$str .= " <a href=\"/$path/source/$source\">$source</a>, ".
gettext( "Download" ).":\n";
- unless (@$files) {
+ unless (defined($files) and @$files) {
$str .= gettext( "Not found" );
} else {
foreach( @$files ) {
use Data::Dumper;
use Deb::Versions;
use Packages::CGI;
-use IO::String;
our $ARCHIVE_DEFAULT = '';
our $SECTION_DEFAULT = 'main';