Skip to content

Commit

Permalink
Merge pull request #3254 from behrmann/minordistributionsfixes
Browse files Browse the repository at this point in the history
Minor distribution fixes
  • Loading branch information
behrmann authored Dec 2, 2024
2 parents 7abaed3 + e8396a9 commit 38cbf1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mkosi/distributions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def detect_distribution(root: Path = Path("/")) -> tuple[Optional[Distribution],
if d is not None:
break

if d in {Distribution.debian, Distribution.ubuntu, Distribution.kali} and version_codename:
if d and d.is_apt_distribution() and version_codename:
version_id = version_codename

return d, version_id
Expand Down
2 changes: 1 addition & 1 deletion mkosi/distributions/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def architecture(cls, arch: Architecture) -> str:
}.get(arch) # fmt: skip

if not a:
die(f"Architecture {arch} is not supported by Debian")
die(f"Architecture {arch} is not supported by {cls.pretty_name()}")

return a

Expand Down

0 comments on commit 38cbf1e

Please sign in to comment.