File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) {
36
36
for (StringRef Line : Lines)
37
37
if (Version == Distro::UnknownDistro && Line.startswith (" ID=" ))
38
38
Version = llvm::StringSwitch<Distro::DistroType>(Line.substr (3 ))
39
+ .Case (" alpine" , Distro::AlpineLinux)
39
40
.Case (" fedora" , Distro::Fedora)
40
41
.Case (" gentoo" , Distro::Gentoo)
41
42
.Case (" arch" , Distro::ArchLinux)
42
- .Case (" exherbo" , Distro::Exherbo)
43
43
// On SLES, /etc/os-release was introduced in SLES 11.
44
44
.Case (" sles" , Distro::OpenSUSE)
45
45
.Case (" opensuse" , Distro::OpenSUSE)
Original file line number Diff line number Diff line change @@ -275,12 +275,10 @@ TEST(DistroTest, DetectDebian) {
275
275
276
276
TEST (DistroTest, DetectExherbo) {
277
277
llvm::vfs::InMemoryFileSystem ExherboFileSystem;
278
- ExherboFileSystem.addFile (" /etc/exherbo-release" , 0 , // (ASCII art)
279
- llvm::MemoryBuffer::getMemBuffer (" " ));
280
278
ExherboFileSystem.addFile (" /etc/os-release" , 0 ,
281
279
llvm::MemoryBuffer::getMemBuffer (" NAME=\" Exherbo\"\n "
282
280
" PRETTY_NAME=\" Exherbo Linux\"\n "
283
- " ID=\" exherbo\" \n"
281
+ " ID=exherbo\n "
284
282
" ANSI_COLOR=\" 0;32\"\n "
285
283
" HOME_URL=\" https://www.exherbo.org/\"\n "
286
284
" SUPPORT_URL=\" irc://irc.freenode.net/#exherbo\"\n "
You can’t perform that action at this time.
0 commit comments