]> git.deb.at Git - deb/packages.git/commitdiff
Merge branch 'master' into archive-master
authorFrank Lichtenheld <frank@lichtenheld.de>
Tue, 19 Aug 2008 21:59:41 +0000 (23:59 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Tue, 19 Aug 2008 21:59:41 +0000 (23:59 +0200)
Conflicts:

config.sh.sed.in
lib/Packages/Dispatcher.pm

1  2 
config.sh.sed.in
lib/Packages/Dispatcher.pm

index 4931dbceffdef300205b7a6eb8a65c45f64fa66a,111cabca2d4fbc4a584dc17e2bcd5d226fc7713c..645853f5a11c43671beb77af9a7ff7e8b802eb64
@@@ -24,8 -24,13 +24,8 @@@ localdir=/srv/archive.debian.org/ft
  # path to private ftp directory
  #ftproot=/org/ftp.root
  
 -ftpsite=http://ftp.de.debian.org/debian
 -security_ftpsite=http://security.debian.org/debian-security
 -volatile_ftpsite=http://volatile.debian.org/debian-volatile
 -backports_ftpsite=http://backports.org/debian
 -amd64_ftpsite=http://amd64.debian.net/debian
 -debports_ftpsite=http://ftp.debian-ports.org/debian
 +ftpsite=http://archive.debian.org/debian-archive
- ddtp_ftpsite=http://ddtp.debian.net/debian
+ ddtp_ftpsite=
  
  wget_cmd="wget --no-verbose --tries=2 --timeout=60"
  check_release_cmd="perl -I${libdir} ${bindir}/check-release --verbose --ignoremissing --keyring ${configdir}/trusted.gpg"
index 7ded77ef31f78077d4016e46d3637a0e6e7a5904,d8b750c18d784604f2d37d461b16e50c543ede97..35b04598f2a7b87824a41ca4f97541f57d0281e3
@@@ -94,9 -94,11 +94,11 @@@ sub do_dispatch 
      &Packages::DB::init();
      my $last_modified = $Packages::DB::db_read_time;
      my $now = time;
 -    my $expires = $last_modified + (12*3600);
++    my $expires = $last_modified + (365*24*3600);
+     $expires = $now + 3600 if $expires < $now;
      # allow some fudge, since the db mod time is not the end of
      # the cron job
-     $last_modified = $now if $last_modified - $now < 3600; 
+     $last_modified = $now if $now - $last_modified < 3600;
  
      if ($input->http('If-Modified-Since') and
        (my $modtime = str2time($input->http('If-Modified-Since'), 'UTC'))) {