Skip to content

Commit

Permalink
build.py: Require --etc-portage on non-Gentoo hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Oct 24, 2024
1 parent a78ca35 commit 90e7c7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion binary_gentoo/internal/cli/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,13 @@ def parse_command_line(argv):
"--etc-portage",
dest="host_etc_portage",
metavar="DIR",
required=not HOST_IS_GENTOO,
default="/etc/portage",
help='enforce specific location for /etc/portage (default: "%(default)s")',
help=(
'enforce specific location for /etc/portage (default: "%(default)s")'
if HOST_IS_GENTOO
else "specify /etc/portage location (required)"
),
)

parser_group_flavors_or_image = parser.add_mutually_exclusive_group()
Expand Down

0 comments on commit 90e7c7d

Please sign in to comment.