]> git.donarmstrong.com Git - infobot.git/commitdiff
woops forgot a few old config vars; converted to new format
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Feb 2001 15:09:17 +0000 (15:09 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Feb 2001 15:09:17 +0000 (15:09 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@323 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/Debian.pl

index 8ddd66d89ae956ffafbe9663572ebdaf3bcb4aee..07045e1a4d1f74df2062542336813080eefab6fb 100644 (file)
@@ -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");