[edk2-devel] [PATCH] BaseTools:Linux changes the way the latest version is judged
Liming Gao
liming.gao at intel.com
Mon Jun 24 03:17:13 UTC 2019
Zhiju:
The change is good. What test have you done?
Thanks
Liming
> -----Original Message-----
> From: Fan, ZhijuX
> Sent: Friday, June 21, 2019 10:33 AM
> To: devel at edk2.groups.io
> Cc: Gao, Liming <liming.gao at intel.com>; Feng, Bob C <bob.c.feng at intel.com>
> Subject: [PATCH] BaseTools:Linux changes the way the latest version is judged
>
> BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1929
>
> Some Linux servers do not have BC installed,so errors occur.
> So the judgment was changed to avoid this error.
>
> Cc: Bob Feng <bob.c.feng at intel.com>
> Cc: Liming Gao <liming.gao at intel.com>
> Signed-off-by: Zhiju.Fan <zhijux.fan at intel.com>
> ---
> edksetup.sh | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/edksetup.sh b/edksetup.sh
> index c7b2e1e201..0723e7b85a 100755
> --- a/edksetup.sh
> +++ b/edksetup.sh
> @@ -122,8 +122,7 @@ function SetupPython3()
> export PYTHON_COMMAND=$python
> continue
> fi
> - ret=`echo "$origin_version < $python_version" |bc`
> - if [ "$ret" -eq 1 ]; then
> + if [ "$origin_version" \< "$python_version" ]; then
> origin_version=$python_version
> export PYTHON_COMMAND=$python
> fi
> @@ -165,8 +164,7 @@ function SetupPython()
> export PYTHON_COMMAND=$python
> continue
> fi
> - ret=`echo "$origin_version < $python_version" |bc`
> - if [ "$ret" -eq 1 ]; then
> + if [ "$origin_version" \< "$python_version" ]; then
> origin_version=$python_version
> export PYTHON_COMMAND=$python
> fi
> --
> 2.14.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#42730): https://edk2.groups.io/g/devel/message/42730
Mute This Topic: https://groups.io/mt/32154778/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list