diff options
author | Andy Doan <andy.doan@linaro.org> | 2017-08-14 09:10:50 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2017-08-14 09:10:50 -0500 |
commit | db06819b8fed49e8fa48587806a93d98261d1880 (patch) | |
tree | 95625e114665c6ec0e4ee8edb79120c9656d3ba4 /grok-cron.py | |
parent | 15b50003095206191659588739170e7b6d95f0e4 (diff) |
grok: skip unmanaged check on android server
We don't install gitolite on android-us.linaro.org. This code was
causing a cron issue showing up in /var/mail/git on android-us.
Change-Id: I91684573d4abccacac542b1dfe98ad19bdbbb6f7
Diffstat (limited to 'grok-cron.py')
-rwxr-xr-x | grok-cron.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/grok-cron.py b/grok-cron.py index 9a4eba8..bd9a57c 100755 --- a/grok-cron.py +++ b/grok-cron.py @@ -36,8 +36,10 @@ def handle_unmanaged(manifile, manifest_repos, repo_dir, dryrun): This can happen when ITS moves a repo from one user's account to another during an exit procedure. ''' - # look at projects.list which is what we serve to the public - # see if it exists and isn't known to grokmirror + if not os.path.exists('/home/git/bin/gitolite'): + log.debug('Gitolite not installed, skipping unmanaged repo check') + return + missing = [] repos = subprocess.check_output( ['/home/git/bin/gitolite', 'list-phy-repos']) |