diff options
author | 2009-01-11 01:25:19 +0530 | |
---|---|---|
committer | 2009-01-11 01:25:19 +0530 | |
commit | 8ae8274d7ffc0ca49e73db3f263cc485759aca1d (patch) | |
tree | 11cdf81c4aa398deb1ab3e58409b954a498b0d92 | |
parent | Expect distfiles rsync URL as rsync://host/module/path (diff) | |
download | gard-8ae8274d7ffc0ca49e73db3f263cc485759aca1d.tar.gz gard-8ae8274d7ffc0ca49e73db3f263cc485759aca1d.tar.bz2 gard-8ae8274d7ffc0ca49e73db3f263cc485759aca1d.zip |
Make output of rsync checks more consistent with the rest
-rwxr-xr-x | gard-v2.py | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |