Skip to content

Commit 046f1fa

Browse files
authored
Merge pull request #28 from itoffshore/logicbug
add incus is required message
2 parents 20d4409 + 03b3fcf commit 046f1fa

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

-83.6 KB
Binary file not shown.
153 KB
Binary file not shown.
83.7 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "hatchling.build"
77

88
[project]
99
name = "distrobuilder_menu"
10-
version = "0.2.8"
10+
version = "0.2.9"
1111
authors = [
1212
{ name="Stuart Cardall", email="developer@it-offshore.co.uk" },
1313
]

src/distrobuilder_menu/menus/common.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ def menu_versions(template, version_list, template_path):
9797

9898
# sanity checks
9999
if len(menu_list) == 0:
100-
utils.die(1, 'logic bug in menu_versions()')
100+
client = utils.get_lxd_binary()
101+
102+
if client == 'lxc':
103+
utils.die(1, f"\n{template} will only build with incus")
104+
else:
105+
utils.die(1, 'logic bug in menu_versions()')
101106

102107
# ARGS.lxd is usually true so check lxc
103108
if ARGS.lxc:

0 commit comments

Comments
 (0)