mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-09 16:01:28 +00:00
add explicit confirmation step
This commit is contained in:
parent
2b03e3ca99
commit
e6bde18b04
10
syncpackage
10
syncpackage
@ -324,6 +324,16 @@ def copy(src_pkg, debian_version, release, simulate=False):
|
|||||||
if simulate:
|
if simulate:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if 'ubuntu' in ubuntu_version:
|
||||||
|
print "Ubuntu version had Ubuntu-specific modifications; check them " \
|
||||||
|
"carefully!"
|
||||||
|
try:
|
||||||
|
answer = raw_input("Sync this package? [y/N] ")
|
||||||
|
except:
|
||||||
|
print >>sys.stderr, "Aborted"
|
||||||
|
if answer.lower() not in ("y", "yes"):
|
||||||
|
return
|
||||||
|
|
||||||
ubuntu_archive.copyPackage(
|
ubuntu_archive.copyPackage(
|
||||||
source_name=src_pkg,
|
source_name=src_pkg,
|
||||||
version=debian_version,
|
version=debian_version,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user