3
0
mirror of https://git.launchpad.net/ubuntu-dev-tools synced 2025-03-18 02:21:08 +00:00
This commit is contained in:
Dimitri John Ledkov 2014-12-18 20:45:58 +00:00
parent ea74634e93
commit 1d2f7f6d0d

@ -20,6 +20,8 @@
# Please see the /usr/share/common-licenses/GPL-2 file for the full text # Please see the /usr/share/common-licenses/GPL-2 file for the full text
# of the GNU General Public License license. # of the GNU General Public License license.
from __future__ import print_function
import re import re
from debian.deb822 import Changes from debian.deb822 import Changes
@ -39,7 +41,7 @@ def get_debian_srcpkg(name, release):
try: try:
release = DebianDistroInfo().codename(release, None, release) release = DebianDistroInfo().codename(release, None, release)
except DistroDataOutdated, e: except DistroDataOutdated as e:
Logger.warn(e) Logger.warn(e)
return debian_archive.getSourcePackage(name, release) return debian_archive.getSourcePackage(name, release)
@ -71,11 +73,11 @@ def need_sponsorship(name, component, release):
need_sponsor = not PersonTeam.me.canUploadPackage(archive, distroseries, need_sponsor = not PersonTeam.me.canUploadPackage(archive, distroseries,
name, component) name, component)
if need_sponsor: if need_sponsor:
print '''You are not able to upload this package directly to Ubuntu. print('''You are not able to upload this package directly to Ubuntu.
Your sync request shall require an approval by a member of the appropriate Your sync request shall require an approval by a member of the appropriate
sponsorship team, who shall be subscribed to this bug report. sponsorship team, who shall be subscribed to this bug report.
This must be done before it can be processed by a member of the Ubuntu Archive This must be done before it can be processed by a member of the Ubuntu Archive
team.''' team.''')
confirmation_prompt() confirmation_prompt()
return need_sponsor return need_sponsor
@ -127,7 +129,7 @@ def get_ubuntu_delta_changelog(srcpkg):
break break
try: try:
response, body = Http().request(changes_url) response, body = Http().request(changes_url)
except HttpLib2Error, e: except HttpLib2Error as e:
Logger.error(str(e)) Logger.error(str(e))
break break
if response.status != 200: if response.status != 200: