Skip to content

Commit

Permalink
make compat to version not disturb scripts that parse output
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Aug 12, 2024
1 parent efb1de8 commit 2a772cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/misc/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ unsigned int requested_compat_version[5] = { UINT_MAX, 0, 0, 0, 0 };

bool use_compat_to_version(const char* check_version)
{

if (UINT_MAX == requested_compat_version[0]) {

char* str = getenv("BART_COMPAT_VERSION");
Expand All @@ -94,16 +93,14 @@ bool use_compat_to_version(const char* check_version)
return false;
}

debug_printf(DP_INFO, "Setting compatibility version to: %s\n", str);
// debug_printf(DP_DEBUG1, "Setting compatibility version to: %s\n", str);
}


unsigned int check_compat_version[5];

if (!version_parse(check_compat_version, check_version))
assert(0);


return (version_compare(check_compat_version, requested_compat_version) >= 0);
}

0 comments on commit 2a772cf

Please sign in to comment.