summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <ford_prefect@gentoo.org>2009-01-11 01:25:19 +0530
committerArun Raghavan <ford_prefect@gentoo.org>2009-01-11 01:25:19 +0530
commit8ae8274d7ffc0ca49e73db3f263cc485759aca1d (patch)
tree11cdf81c4aa398deb1ab3e58409b954a498b0d92
parentExpect distfiles rsync URL as rsync://host/module/path (diff)
downloadgard-8ae8274d7ffc0ca49e73db3f263cc485759aca1d.tar.gz
gard-8ae8274d7ffc0ca49e73db3f263cc485759aca1d.tar.bz2
gard-8ae8274d7ffc0ca49e73db3f263cc485759aca1d.zip
Make output of rsync checks more consistent with the rest
-rwxr-xr-xgard-v2.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/gard-v2.py b/gard-v2.py
index 55336af..d22bee2 100755
--- a/gard-v2.py
+++ b/gard-v2.py
@@ -89,8 +89,12 @@ for line in file:
handler = add_handler(fname)
info4=grsync+" wants to be a gentoo-portage mirror and is being checked as per Bug #"+bugnum
logging.info(info4)
- addy = 'rsync://%s/' % addy
- check.PortageCheck(addy).check(rmaxlag)
+ prsync = 'rsync://%s/' % addy
+
+ if check.PortageCheck(prsync).check(rmaxlag) is True:
+ logging.info(addy + ' is in sync')
+ else:
+ logging.info(addy + ' is out of sync')
bugurl1 = "Bug URL : https://bugs.gentoo.org/"+bugnum+" , "+duedate
logging.info(bugurl1)
@@ -163,7 +167,10 @@ for line in file:
info7 = addy+" wants to be an source mirror and is being checked as per Bug #"+bugnum+ " over rsync"
logging.info(info7)
- check.DistfilesCheck(drsync).check(dmaxlag)
+ if check.DistfilesCheck(drsync).check(dmaxlag) is True:
+ logging.info(addy + ' is in sync')
+ else:
+ logging.info(addy + ' is out of sync')
# Now common lines
bugurl7 = "Bug URL : https://bugs.gentoo.org/"+bugnum+" , "+duedate