replace python with python2 95/308495/7 accepted/tools_devbase_tools_legacy devel-py2 accepted/tools/devbase/tools/legacy/20250527.042531
authorwangbiao <biao716.wang@samsung.com>
Tue, 26 Mar 2024 10:11:35 +0000 (19:11 +0900)
committerwangbiao <biao716.wang@samsung.com>
Wed, 3 Apr 2024 01:09:53 +0000 (10:09 +0900)
In ubuntu20.04, if installing python, it will install python-is-python2, it will
set python2 as default python interpeter.
Change-Id: I219b63cfc1dd136c72722d7bff7cde1e7420e5e2
Signed-off-by: wangbiao <biao716.wang@samsung.com>
debian/control
debian/rules

index 180213afe8e11b9c0ed78d2c4330a17da1ab301b..e347f8862451a376006cb9bfc9e78dde6a054cdb 100644 (file)
@@ -2,14 +2,14 @@ Source: osc
 Section: devel
 Priority: extra
 Maintainer: Adrian Schroeter <adrian@suse.de>
-Build-Depends: debhelper (>= 4.0.0), dpatch, python, python-dev, python-urlgrabber
+Build-Depends: debhelper (>= 4.0.0), dh-python, dpatch, python2 | python, python2-dev|python-dev, python-urlgrabber
 Standards-Version: 3.8.3
 Homepage: http://en.opensuse.org/Build_Service/CLI
 
 Package: osc
 Section: devel
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python (>= 2.5), python-urlgrabber, python-rpm, python-keyring, python-gobject, python-m2crypto (>= 0.20) | python3-m2crypto
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python2:Depends}, python-urlgrabber, python-rpm, python-keyring, python-gobject, python-m2crypto (>= 0.20) | python3-m2crypto
 Suggests: python-gnomekeyring, gnome-keyring, build (> 2010.04.24)
 Description: openSUSE (buildsystem) commander
  Commandline client for the openSUSE Build Service, which allows to access
index 5f27b9c2c90ed9ff4ab84c24f972134742942ff1..09ffde1ae46e9395891fa3898ee2ec35a0809053 100755 (executable)
@@ -1,13 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-       dh $@
-
-build: build-stamp
-build-stamp: 
-       dh_testdir
-       touch build-stamp
-       python setup.py build --force
+       dh $@ --with python2 --buildsystem=pybuild
 
 override_dh_installchangelogs:
        dh_installchangelogs NEWS