diff options
author | 2008-12-21 14:17:55 +0530 | |
---|---|---|
committer | 2008-12-21 14:17:55 +0530 | |
commit | e96225c2c73bcbb0438406799be147d976df874b (patch) | |
tree | aa58246b2335310840f82a5c1ed34679613559e7 | |
parent | Factor out distfiles/releases checking code. Portage checker en route. (diff) | |
download | gard-e96225c2c73bcbb0438406799be147d976df874b.tar.gz gard-e96225c2c73bcbb0438406799be147d976df874b.tar.bz2 gard-e96225c2c73bcbb0438406799be147d976df874b.zip |
Trivial cleanups to check.py
-rw-r--r-- | check.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |