forked from M-Labs/artiq
artiq_flash: ignore checking non-RTM artifacts if unused
This commit is contained in:
parent
20e079a381
commit
b49f813b17
|
@ -362,7 +362,10 @@ def main():
|
||||||
variants.remove("rtm")
|
variants.remove("rtm")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
if len(variants) == 0:
|
if all(action in ["rtm_gateware", "storage", "rtm_load", "erase", "start"]
|
||||||
|
for action in args.action) and args.action:
|
||||||
|
pass
|
||||||
|
elif len(variants) == 0:
|
||||||
raise FileNotFoundError("no variants found, did you install a board binary package?")
|
raise FileNotFoundError("no variants found, did you install a board binary package?")
|
||||||
elif len(variants) == 1:
|
elif len(variants) == 1:
|
||||||
variant = variants[0]
|
variant = variants[0]
|
||||||
|
|
Loading…
Reference in New Issue