forked from mirrors/nixpkgs
maintainers/hydra-eval-failures: catch fetching maintainers
Fails with some i686-linux build failures
This commit is contained in:
parent
46cb14c8cc
commit
df33d1a2fc
|
@ -31,18 +31,21 @@ EVAL_FILE = {
|
||||||
|
|
||||||
|
|
||||||
def get_maintainers(attr_name):
|
def get_maintainers(attr_name):
|
||||||
nixname = attr_name.split('.')
|
try:
|
||||||
meta_json = subprocess.check_output([
|
nixname = attr_name.split('.')
|
||||||
'nix-instantiate',
|
meta_json = subprocess.check_output([
|
||||||
'--eval',
|
'nix-instantiate',
|
||||||
'--strict',
|
'--eval',
|
||||||
'-A',
|
'--strict',
|
||||||
'.'.join(nixname[1:]) + '.meta',
|
'-A',
|
||||||
EVAL_FILE[nixname[0]],
|
'.'.join(nixname[1:]) + '.meta',
|
||||||
'--json'])
|
EVAL_FILE[nixname[0]],
|
||||||
meta = json.loads(meta_json)
|
'--json'])
|
||||||
if meta.get('maintainers'):
|
meta = json.loads(meta_json)
|
||||||
return [MAINTAINERS[name] for name in meta['maintainers'] if MAINTAINERS.get(name)]
|
if meta.get('maintainers'):
|
||||||
|
return [MAINTAINERS[name] for name in meta['maintainers'] if MAINTAINERS.get(name)]
|
||||||
|
except:
|
||||||
|
return []
|
||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
|
|
Loading…
Reference in a new issue