Replace depend python with python2, do not install python-is-python2 package. 72/309572/5 accepted/tools_devbase_tools_legacy devel-py2 accepted/tools/devbase/tools/legacy/20250527.042600
authorwanchao-xu <wanchao.xu@samsung.com>
Fri, 12 Apr 2024 06:42:39 +0000 (14:42 +0800)
committerwanchao-xu <wanchao.xu@samsung.com>
Tue, 16 Apr 2024 02:01:01 +0000 (10:01 +0800)
If install python package, it will install python-is-python2 on ubuntu20.04, and set python2 as default python interpeter.

Change-Id: I4ed94178de6ba363f9d8299749b01eb0f879439f
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
Makefile
debian/control

index 740b6161b1f528dd480a9266b5013d40dded60c4..358f1c02b079329d9c0e89cc2fad41c7778e5f47 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ PKGNAME = yum
 VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
 RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
 CVSTAG=yum-$(subst .,_,$(VERSION)-$(RELEASE))
-PYTHON=python
+PYTHON=python2
 WEBHOST = yum.baseurl.org
 WEB_DOC_PATH = /srv/projects/yum/web/download/docs/yum-api/
 
index 856b00e42addd6272b8dc27741faad98828eea3c..9478d06192f3afd0081739da02f908e2c997a7e0 100755 (executable)
@@ -3,7 +3,7 @@ Section: admin
 Priority: extra
 Maintainer: Thomas Goirand <zigo@debian.org>
 Uploaders: Mike Miller <mtmiller@ieee.org>
-Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python, python-dev
+Build-Depends: debhelper (>= 9), python2, python2-dev
 Build-Depends-Indep: intltool
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/yum.git
 Vcs-Git: git://anonscm.debian.org/collab-maint/yum.git
@@ -12,7 +12,7 @@ Homepage: http://yum.baseurl.org/
 
 Package: yum
 Architecture: all
-Depends: python (>= 2.5) | python-celementtree,
+Depends: python2 (>= 2.5) | python-celementtree,
  python-libxml2,
  python-rpm,
  python-sqlite,