OS (Linux): don't use rolling as os version

This commit is contained in:
李通洲
2024-05-03 13:08:24 +08:00
parent 8b838cef61
commit 5e9fcaf7ca
+4 -1
View File
@@ -12,7 +12,6 @@ static inline bool allRelevantValuesSet(const FFOSResult* result)
return result->id.length > 0
&& result->name.length > 0
&& result->prettyName.length > 0
&& result->version.length > 0
;
}
@@ -175,6 +174,10 @@ static void detectOS(FFOSResult* os)
ffStrbufSetStatic(&os->idLike, "debian");
return;
}
// For archlinux
if (ffStrbufEqualS(&os->version, "rolling"))
ffStrbufClear(&os->version);
}
if(parseOsRelease(FASTFETCH_TARGET_DIR_ETC "/os-release", os) && allRelevantValuesSet(os))