From e96225c2c73bcbb0438406799be147d976df874b Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Sun, 21 Dec 2008 14:17:55 +0530 Subject: Trivial cleanups to check.py --- check.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/check.py b/check.py index 1540627..aa605e2 100644 --- a/check.py +++ b/check.py @@ -1,6 +1,5 @@ #!/usr/bin/python -import os import urllib2 import time import rfc822 @@ -68,7 +67,7 @@ class DistCheck(GardCheck): ts = self._get_timestamp_from_url(self.url+'/distfiles/timestamp.chk') if ts is not None and ((now - ts) > maxdlag or (now - ts) < 0): if verbose is True: - print 'ERROR: distfiles at %s is lagging by %s' \ + print 'ERROR: distfiles at %s is lagging - delta is %s' \ % (self.url, self.humanize_time(now - ts)) ret = False @@ -76,7 +75,7 @@ class DistCheck(GardCheck): ts = self._get_timestamp_from_url(self.url+'/releases/.test/timestamp.x') if ts is not None and ((now - ts) > maxrlag or (now - ts) < 0): if verbose is True: - print 'ERROR: releases at %s is lagging by %s seconds' \ + print 'ERROR: releases at %s is lagging - delta is %s' \ % (self.url, self.humanize_time(now - ts)) ret = False @@ -84,7 +83,7 @@ class DistCheck(GardCheck): # is not world readable if self._check_file_exists(self.url+'releases/.test/THIS-FILE-SHOULD-NOT-BE-PUBLIC.txt'): if verbose is True: - print 'ERROR: THIS-FILE-SHOULD-NOT-BE-PUBLIC.txt is visible to the outside world' + print 'ERROR: THIS-FILE-SHOULD-NOT-BE-PUBLIC.txt is visible on %s' % self.url ret = False return ret -- cgit v1.2.3-65-gdbad