mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-28 17:21:35 +00:00
Port check-mir to Python 3
This commit is contained in:
parent
2a0bffc2a0
commit
071ff40f20
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
#
|
#
|
||||||
# Check components of build dependencies and warn about universe/multiverse
|
# Check components of build dependencies and warn about universe/multiverse
|
||||||
# ones, for a package destined for main/restricted
|
# ones, for a package destined for main/restricted
|
||||||
@ -21,8 +21,6 @@
|
|||||||
# this program; if not, write to the Free Software Foundation, Inc.,
|
# this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import optparse
|
import optparse
|
||||||
import os.path
|
import os.path
|
||||||
@ -103,7 +101,7 @@ def check_binary_dependencies(apt_cache, control):
|
|||||||
print('\nChecking support status of binary dependencies...')
|
print('\nChecking support status of binary dependencies...')
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
control.next()
|
next(control)
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
break
|
break
|
||||||
|
|
||||||
@ -141,7 +139,7 @@ def main():
|
|||||||
|
|
||||||
# get build dependencies from debian/control
|
# get build dependencies from debian/control
|
||||||
control = apt.apt_pkg.TagFile(open('debian/control'))
|
control = apt.apt_pkg.TagFile(open('debian/control'))
|
||||||
control.next()
|
next(control)
|
||||||
|
|
||||||
unsupported_build_deps = check_build_dependencies(apt_cache, control)
|
unsupported_build_deps = check_build_dependencies(apt_cache, control)
|
||||||
unsupported_binary_deps = check_binary_dependencies(apt_cache, control)
|
unsupported_binary_deps = check_binary_dependencies(apt_cache, control)
|
||||||
|
1
debian/control
vendored
1
debian/control
vendored
@ -63,6 +63,7 @@ Depends:
|
|||||||
python-lazr.restfulclient,
|
python-lazr.restfulclient,
|
||||||
python-ubuntutools,
|
python-ubuntutools,
|
||||||
python3,
|
python3,
|
||||||
|
python3-apt,
|
||||||
python3-distro-info,
|
python3-distro-info,
|
||||||
python3-httplib2,
|
python3-httplib2,
|
||||||
python3-launchpadlib,
|
python3-launchpadlib,
|
||||||
|
2
setup.py
2
setup.py
@ -19,6 +19,7 @@ if sys.version_info[0] >= 3:
|
|||||||
scripts = [
|
scripts = [
|
||||||
'backportpackage',
|
'backportpackage',
|
||||||
'bitesize',
|
'bitesize',
|
||||||
|
'check-mir',
|
||||||
'check-symbols',
|
'check-symbols',
|
||||||
'dch-repeat',
|
'dch-repeat',
|
||||||
'grab-merge',
|
'grab-merge',
|
||||||
@ -36,7 +37,6 @@ if sys.version_info[0] >= 3:
|
|||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
scripts = [
|
scripts = [
|
||||||
'check-mir',
|
|
||||||
'grep-merges',
|
'grep-merges',
|
||||||
'hugdaylist',
|
'hugdaylist',
|
||||||
'import-bug-from-debian',
|
'import-bug-from-debian',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user