diff options
-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 |