mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 22:46:58 +02:00
[crosutils] Make chromium/libcros mismatch messages more semantically accurate
The messages printed out by the code that checks if chromium's libcros and the system's libcros are in sync were kind of confusing and not quite accurate. The system library implements a range of API versions, and it is chromium that requires a particular version of the API. The messages now clearly reflect this. BUG=None TEST=manual Change-Id: I7308d7eb724edfb7fa11edbe0fbec86ee12c5afe Reviewed-on: http://gerrit.chromium.org/gerrit/1136 Reviewed-by: David James <davidjames@chromium.org> Tested-by: Chris Masone <cmasone@chromium.org>
This commit is contained in:
parent
cb296ab653
commit
6224cba9c7
@ -100,14 +100,14 @@ check_cros_version() {
|
||||
|
||||
if [ "$MIN_VERSION" -gt "$VERSION" ]; then
|
||||
echo "test_build_root: System libcros not compatible with Chromium."
|
||||
echo "Chromium has version $VERSION, but system requires $MIN_VERSION or"
|
||||
echo "later."
|
||||
echo "Chromium requires version $VERSION, but system provides $MIN_VERSION"
|
||||
echo "or later."
|
||||
return 1
|
||||
fi
|
||||
if [ "$VERSION" -gt "$MAX_VERSION" ]; then
|
||||
echo "test_build_root: System libcros not compatible with Chromium headers."
|
||||
echo "Chromium has version $VERSION, but system requires $MAX_VERSION or"
|
||||
echo "earlier."
|
||||
echo "Chromium requires version $VERSION, but system provides $MAX_VERSION"
|
||||
echo "or earlier."
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user