meson: Fix various versions
Follow up for 8b3b01c4b7
We switch to PROJECT_VERSION instead of PROJECT_VERSION_FULL where
we report our version and which is likely being parsed to avoid
breaking compat. If we didn't, the output would change from systemd
255 to systemd 255.1 which could break various tools.
This commit is contained in:
+2
-2
@@ -287,8 +287,8 @@ int version(void) {
|
||||
if (colors_enabled())
|
||||
b = systemd_features_with_color();
|
||||
|
||||
printf("%ssystemd " PROJECT_VERSION_FULL "%s (" GIT_VERSION ")\n%s\n",
|
||||
ansi_highlight(), ansi_normal(),
|
||||
printf("%ssystemd %i%s (" GIT_VERSION ")\n%s\n",
|
||||
ansi_highlight(), PROJECT_VERSION, ansi_normal(),
|
||||
b ?: systemd_features);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user