git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@323
c11ca15a-4712-0410-83d8-
924469b57eb5
# regenerate it, even if it's not stale.
# TODO: also, regenerate the index if the packages file is newer
# than the index.
# regenerate it, even if it's not stale.
# TODO: also, regenerate the index if the packages file is newer
# than the index.
- next unless (&::isStale($idx, $::param{'debianRefreshInterval'}));
+ next unless (&::isStale($idx, $refresh));
if (/^incoming$/i) {
&::DEBUG("gIndex: calling generateIncoming()!");
&generateIncoming();
if (/^incoming$/i) {
&::DEBUG("gIndex: calling generateIncoming()!");
&generateIncoming();
if (/^\*(.*)$/) {
$file = $1;
if (/^\*(.*)$/) {
$file = $1;
- if (&::isStale($file, $::param{'debianRefreshInterval'})) {
+ if (&::isStale($file, $refresh)) {
&::DEBUG("STALE $file! regen.");
&generateIndex(($dist));
### @files = searchPackage("$query $dist");
&::DEBUG("STALE $file! regen.");
&generateIndex(($dist));
### @files = searchPackage("$query $dist");