Add support of the next Ubuntu (Ubuntu 22.10 - Kinetic Kudu)

This commit is contained in:
Sylvestre Ledru 2022-05-23 13:49:34 +02:00
parent a02000611a
commit 6f4dc5dae6
2 changed files with 3 additions and 1 deletions

View File

@ -75,6 +75,7 @@ public:
UbuntuHirsute,
UbuntuImpish,
UbuntuJammy,
UbuntuKinetic,
UnknownDistro
};
@ -126,7 +127,7 @@ public:
}
bool IsUbuntu() const {
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
}
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

View File

@ -91,6 +91,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
.Case("hirsute", Distro::UbuntuHirsute)
.Case("impish", Distro::UbuntuImpish)
.Case("jammy", Distro::UbuntuJammy)
.Case("kinetic", Distro::UbuntuKinetic)
.Default(Distro::UnknownDistro);
return Version;
}