Skip to content

Commit

Permalink
fix(rockcraft_lpci_build): both build-base and build_base are allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Apr 9, 2024
1 parent fb43333 commit 41ea72a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rockcraft_lpci_build/rockcraft_lpci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ def get_rock_archs(self) -> list:
def get_rock_build_base(self) -> str:
"""Infer the Ubuntu series for lpci, from the rockcraft.yaml file"""
try:
build_base = self.rockcraft_yaml_raw["build_base"]
build_base = self.rockcraft_yaml_raw.get(
"build-base", self.rockcraft_yaml_raw["build_base"]
)
except KeyError:
try:
build_base = self.rockcraft_yaml_raw["base"]
Expand Down

0 comments on commit 41ea72a

Please sign in to comment.