mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-17 18:11:10 +00:00
rs/lp
This commit is contained in:
parent
ea74634e93
commit
1d2f7f6d0d
@ -20,6 +20,8 @@
|
||||
# Please see the /usr/share/common-licenses/GPL-2 file for the full text
|
||||
# of the GNU General Public License license.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import re
|
||||
|
||||
from debian.deb822 import Changes
|
||||
@ -39,7 +41,7 @@ def get_debian_srcpkg(name, release):
|
||||
|
||||
try:
|
||||
release = DebianDistroInfo().codename(release, None, release)
|
||||
except DistroDataOutdated, e:
|
||||
except DistroDataOutdated as e:
|
||||
Logger.warn(e)
|
||||
|
||||
return debian_archive.getSourcePackage(name, release)
|
||||
@ -71,11 +73,11 @@ def need_sponsorship(name, component, release):
|
||||
need_sponsor = not PersonTeam.me.canUploadPackage(archive, distroseries,
|
||||
name, component)
|
||||
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
|
||||
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
|
||||
team.'''
|
||||
team.''')
|
||||
confirmation_prompt()
|
||||
|
||||
return need_sponsor
|
||||
@ -127,7 +129,7 @@ def get_ubuntu_delta_changelog(srcpkg):
|
||||
break
|
||||
try:
|
||||
response, body = Http().request(changes_url)
|
||||
except HttpLib2Error, e:
|
||||
except HttpLib2Error as e:
|
||||
Logger.error(str(e))
|
||||
break
|
||||
if response.status != 200:
|
||||
|
Loading…
x
Reference in New Issue
Block a user