From 3753b40f4ff30f876be190a9529f1137701beb29 Mon Sep 17 00:00:00 2001 From: wanchao-xu Date: Mon, 15 Apr 2024 08:46:12 +0800 Subject: [PATCH] Replace python with python2. * The python-is-python2 package will not be installed by gbs now. Change-Id: Iba6f0545ced8364ac766dcbb188b87286cfd741b Signed-off-by: wanchao-xu --- cases/export/gbs_export_with_merge_commit_in_git-log.case | 4 ++-- cases/other/gbs_version_check.case | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cases/export/gbs_export_with_merge_commit_in_git-log.case b/cases/export/gbs_export_with_merge_commit_in_git-log.case index a9b5300..708dafd 100644 --- a/cases/export/gbs_export_with_merge_commit_in_git-log.case +++ b/cases/export/gbs_export_with_merge_commit_in_git-log.case @@ -28,9 +28,9 @@ git commit -a -m "first moidfy README" git checkout master -DIST=`python -c "import platform; print platform.dist()[0]"` +DIST=`python2 -c "import platform; print platform.dist()[0]"` -VERSION=`python -c "import platform;print platform.dist()[1]"` +VERSION=`python2 -c "import platform;print platform.dist()[1]"` if ([ $DIST = centos ] && [ $VERSION \< 7 ] ) || ([ $DIST = SuSE ] && [ $VERSION = 12.1 ]);then OPTION=--no-log diff --git a/cases/other/gbs_version_check.case b/cases/other/gbs_version_check.case index 7526e84..d3fd2ed 100644 --- a/cases/other/gbs_version_check.case +++ b/cases/other/gbs_version_check.case @@ -1,7 +1,7 @@ GBS package version check