From 985d432b324e3a6f4e961bfbdf9bfdf6f0884396 Mon Sep 17 00:00:00 2001
From: dms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Tue, 13 Feb 2001 13:58:48 +0000
Subject: [PATCH] added debian-specific debug to isStale

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@380 c11ca15a-4712-0410-83d8-924469b57eb5
---
 src/Misc.pl | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/Misc.pl b/src/Misc.pl
index 8df144e..b190857 100644
--- a/src/Misc.pl
+++ b/src/Misc.pl
@@ -437,7 +437,16 @@ sub isStale {
 	return 1;
     }
 
+    if (!defined $file) {
+	&WARN("isStale: file == NULL.");
+	return 1;
+    }
+
     return 1 unless ( -f $file);
+    if ($file =~ /idx/) {
+	my $age	= time() - (stat($file))[9];
+	&DEBUG("stale: $age. (". &Time2String($age) .")");
+    }
     return 1 if (time() - (stat($file))[9] > $age*60*60*24);
     return 0;
 }
-- 
2.39.5