- Fixed %check by adding missing $
- Update to v0.10.0
* The default Debian compat version has been changed from 7 to 9
as well as new
- from v0.9.1
* A few improvements for Python 3 as well as new options.
- Updated patches
OBS-URL: https://build.opensuse.org/request/show/972333
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stdeb?expand=0&rev=15
51 lines
2.3 KiB
Diff
51 lines
2.3 KiB
Diff
Index: stdeb-0.10.0/stdeb/util.py
|
|
===================================================================
|
|
--- stdeb-0.10.0.orig/stdeb/util.py
|
|
+++ stdeb-0.10.0/stdeb/util.py
|
|
@@ -1512,45 +1512,6 @@ def build_dsc(debinfo,
|
|
finally:
|
|
shutil.rmtree(tmp_dir)
|
|
|
|
- if 1:
|
|
- # check versions of debhelper and python-all
|
|
- debhelper_version_str = get_version_str('debhelper')
|
|
- if len(debhelper_version_str) == 0:
|
|
- log.warn('This version of stdeb requires debhelper >= %s, but you '
|
|
- 'do not have debhelper installed. '
|
|
- 'Could not check compatibility.' % DH_MIN_VERS)
|
|
- else:
|
|
- if not dpkg_compare_versions(
|
|
- debhelper_version_str, 'ge', DH_MIN_VERS
|
|
- ):
|
|
- log.warn('This version of stdeb requires debhelper >= %s. '
|
|
- 'Use stdeb 0.9.x to generate source packages '
|
|
- 'compatible with older versions of debhelper.' % (
|
|
- DH_MIN_VERS,))
|
|
-
|
|
- if debinfo.with_python2:
|
|
- python_defaults_version_str = get_version_str('python-all')
|
|
-
|
|
- if len(python_defaults_version_str) == 0:
|
|
- log.warn('This version of stdeb requires python-all >= %s, '
|
|
- 'but you do not have this package installed. Could '
|
|
- 'not check compatibility.' % PYTHON_ALL_MIN_VERS)
|
|
- else:
|
|
- if not dpkg_compare_versions(
|
|
- python_defaults_version_str, 'ge', PYTHON_ALL_MIN_VERS
|
|
- ):
|
|
- log.warn('This version of stdeb requires python-all >= '
|
|
- '%s. Use stdeb 0.6.0 or older to generate source '
|
|
- 'packages that use python-support.' % (
|
|
- PYTHON_ALL_MIN_VERS,))
|
|
-
|
|
- if debinfo.with_python3:
|
|
- python3_defaults_version_str = get_version_str('python3-all')
|
|
-
|
|
- if len(python3_defaults_version_str) == 0:
|
|
- log.warn('This version of stdeb requires python3-all, '
|
|
- 'but you do not have this package installed.')
|
|
-
|
|
# D. restore debianized tree
|
|
os.rename(fullpath_repackaged_dirname+'.debianized',
|
|
fullpath_repackaged_dirname)
|