mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-07-23 12:51:29 +00:00
use ubuntutools.question
This commit is contained in:
parent
0735ad8de3
commit
87e1cadcb0
@ -42,6 +42,7 @@ from ubuntutools.requestsync.lp import getDebianSrcPkg, getUbuntuSrcPkg
|
|||||||
from ubuntutools.lp import udtexceptions
|
from ubuntutools.lp import udtexceptions
|
||||||
from ubuntutools.lp.lpapicache import Distribution, Launchpad
|
from ubuntutools.lp.lpapicache import Distribution, Launchpad
|
||||||
from ubuntutools.misc import split_release_pocket
|
from ubuntutools.misc import split_release_pocket
|
||||||
|
from ubuntutools.question import YesNoQuestion
|
||||||
from ubuntutools import subprocess
|
from ubuntutools import subprocess
|
||||||
|
|
||||||
|
|
||||||
@ -336,11 +337,8 @@ def copy(src_pkg, debian_dist, debian_version, release, simulate=False):
|
|||||||
if 'ubuntu' in ubuntu_version:
|
if 'ubuntu' in ubuntu_version:
|
||||||
print "Ubuntu version had Ubuntu-specific modifications; check them " \
|
print "Ubuntu version had Ubuntu-specific modifications; check them " \
|
||||||
"carefully!"
|
"carefully!"
|
||||||
try:
|
answer = YesNoQuestion().ask("Sync this package", "no")
|
||||||
answer = raw_input("Sync this package? [y/N] ")
|
if answer != "yes":
|
||||||
except:
|
|
||||||
print >>sys.stderr, "Aborted"
|
|
||||||
if answer.lower() not in ("y", "yes"):
|
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user