fix: error if build selectors are empty

This commit is contained in:
Henry Fredrick Schreiner
2021-01-22 13:01:00 -05:00
committed by Henry Schreiner
parent 27a0053386
commit 61b94434b2
5 changed files with 47 additions and 3 deletions
+4 -3
View File
@@ -195,9 +195,6 @@ def main() -> None:
archs = Architecture.parse_config(archs_config_str, platform=platform)
identifiers = get_build_identifiers(platform, build_selector, archs)
if not identifiers:
print("ERROR: No build identifiers selected!")
sys.exit(3)
if args.print_build_identifiers:
for identifier in identifiers:
@@ -269,6 +266,10 @@ def main() -> None:
else:
assert_never(platform)
if not identifiers:
print("ERROR: No build identifiers selected!")
sys.exit(3)
def detect_obsolete_options() -> None:
# Check the old 'MANYLINUX1_*_IMAGE' options