From: dms Date: Sat, 3 Feb 2001 15:09:17 +0000 (+0000) Subject: woops forgot a few old config vars; converted to new format X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3825d1ebd61ca7b5ede5a1a7e60e510a50c35c16;p=infobot.git woops forgot a few old config vars; converted to new format git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@323 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/Debian.pl b/src/Modules/Debian.pl index 8ddd66d..07045e1 100644 --- a/src/Modules/Debian.pl +++ b/src/Modules/Debian.pl @@ -834,7 +834,7 @@ sub generateIndex { # 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(); @@ -954,7 +954,7 @@ sub searchPackage { if (/^\*(.*)$/) { $file = $1; - if (&::isStale($file, $::param{'debianRefreshInterval'})) { + if (&::isStale($file, $refresh)) { &::DEBUG("STALE $file! regen."); &generateIndex(($dist)); ### @files = searchPackage("$query $dist");