Skip to content

Commit

Permalink
feat(rockcraft_lpci_build): increase verbosity for distro_info errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Apr 9, 2024
1 parent 20767ab commit fb43333
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rockcraft_lpci_build/rockcraft_lpci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,15 @@ def get_rock_build_base(self) -> str:
)

build_base_release = build_base.replace(":", "@").split("@")[-1]
build_base_full_release = list(
filter(lambda r: build_base_release in r, all_releases)
)[0]
try:
build_base_full_release = list(
filter(lambda r: build_base_release in r, all_releases)
)[0]
except IndexError:
logging.error(
f"Can't find {build_base_release} in Ubuntu releases ({all_releases})"
)
raise

return all_codenames[all_releases.index(build_base_full_release)]

Expand Down

0 comments on commit fb43333

Please sign in to comment.