We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb43333 commit 1ad97b9Copy full SHA for 1ad97b9
rockcraft_lpci_build/rockcraft_lpci_build.py
@@ -314,9 +314,13 @@ def get_rock_archs(self) -> list:
314
315
def get_rock_build_base(self) -> str:
316
"""Infer the Ubuntu series for lpci, from the rockcraft.yaml file"""
317
- try:
318
- build_base = self.rockcraft_yaml_raw["build_base"]
319
- except KeyError:
+ build_base = self.rockcraft_yaml_raw.get(
+ "build-base", self.rockcraft_yaml_raw.get("build_base")
+ )
320
+
321
+ if not build_base:
322
+ logging.info(f"No 'build-base' in the rockfile. Using 'base' instead")
323
+ logging.info(self.rockcraft_yaml_raw)
324
try:
325
build_base = self.rockcraft_yaml_raw["base"]
326
except KeyError:
0 commit comments