Add support of the next Ubuntu (Ubuntu 25.04 - Plucky Puffin)

This commit is contained in:
Sylvestre Ledru 2024-10-17 21:32:20 +02:00
parent 29097dd2f3
commit 32b55f375f
2 changed files with 3 additions and 1 deletions

View File

@ -80,6 +80,7 @@ public:
UbuntuMantic,
UbuntuNoble,
UbuntuOracular,
UbuntuPlucky,
UnknownDistro
};
@ -131,7 +132,7 @@ public:
}
bool IsUbuntu() const {
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular;
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuPlucky;
}
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

View File

@ -96,6 +96,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
.Case("mantic", Distro::UbuntuMantic)
.Case("noble", Distro::UbuntuNoble)
.Case("oracular", Distro::UbuntuOracular)
.Case("plucky", Distro::UbuntuPlucky)
.Default(Distro::UnknownDistro);
return Version;
}