mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 16:11:15 +00:00
Fix: The package was only uploaded if the target was "ubuntu".
This commit is contained in:
parent
9077c0babd
commit
715c554e88
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -29,8 +29,9 @@ ubuntu-dev-tools (0.109) UNRELEASED; urgency=low
|
|||||||
- Default to a temporary workdir and clean it up (LP: #691467).
|
- Default to a temporary workdir and clean it up (LP: #691467).
|
||||||
- Fix 'str' object has no attribute 'startwith' crash caused by a typo.
|
- Fix 'str' object has no attribute 'startwith' crash caused by a typo.
|
||||||
- Fix crash if uploading to ubuntu without building the package before.
|
- Fix crash if uploading to ubuntu without building the package before.
|
||||||
|
- Fix: The package was only uploaded if the target was "ubuntu".
|
||||||
|
|
||||||
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 22 Dec 2010 12:52:56 +0100
|
-- Benjamin Drung <bdrung@ubuntu.com> Wed, 22 Dec 2010 13:38:36 +0100
|
||||||
|
|
||||||
ubuntu-dev-tools (0.108) experimental; urgency=low
|
ubuntu-dev-tools (0.108) experimental; urgency=low
|
||||||
|
|
||||||
|
@ -458,41 +458,46 @@ def main(bug_number, build, builder, edit, keyid, lpinstance, update, upload,
|
|||||||
|
|
||||||
# Upload package
|
# Upload package
|
||||||
if upload:
|
if upload:
|
||||||
|
print "Please check %s %s carefully:\nfile://%s\nfile://%s" % \
|
||||||
|
(task.package, new_version, debdiff_filename,
|
||||||
|
lintian_filename)
|
||||||
|
if build_log:
|
||||||
|
print "\nfile://%s" % build_log
|
||||||
if upload == "ubuntu":
|
if upload == "ubuntu":
|
||||||
print "Please check %s %s carefully:\nfile://%s\nfile://%s" % \
|
target = "the official Ubuntu archive"
|
||||||
(task.package, new_version, debdiff_filename,
|
else:
|
||||||
lintian_filename)
|
target = upload
|
||||||
if build_log:
|
question = Question(["yes", "edit", "no"])
|
||||||
print "\nfile://%s" % build_log
|
answer = question.ask("Do you want to upload the package to %s" % \
|
||||||
question = Question(["yes", "edit", "no"])
|
target, "yes")
|
||||||
answer = question.ask("Do you want to upload the package to " \
|
if answer == "edit":
|
||||||
"the official Ubuntu archive", "yes")
|
continue
|
||||||
if answer == "edit":
|
elif answer == "no":
|
||||||
continue
|
user_abort()
|
||||||
elif answer == "no":
|
cmd = ["dput", "--force", upload, changes_file]
|
||||||
user_abort()
|
Logger.command(cmd)
|
||||||
cmd = ["dput", "--force", upload, changes_file]
|
if subprocess.call(cmd) != 0:
|
||||||
|
Logger.error("Upload of %s to %s failed." % \
|
||||||
|
(os.path.basename(changes_file), upload))
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
# Push the branch if the package is uploaded to the Ubuntu archive.
|
||||||
|
if upload == "ubuntu" and branch:
|
||||||
|
cmd = ['debcommit']
|
||||||
Logger.command(cmd)
|
Logger.command(cmd)
|
||||||
if subprocess.call(cmd) != 0:
|
if subprocess.call(cmd) != 0:
|
||||||
Logger.error("Upload of %s to %s failed." % \
|
Logger.error('Bzr commit failed.')
|
||||||
(os.path.basename(changes_file), upload))
|
sys.exit(1)
|
||||||
|
cmd = ['bzr', 'mark-uploaded']
|
||||||
|
Logger.command(cmd)
|
||||||
|
if subprocess.call(cmd) != 0:
|
||||||
|
Logger.error('Bzr tagging failed.')
|
||||||
|
sys.exit(1)
|
||||||
|
cmd = ['bzr', 'push', ':parent']
|
||||||
|
Logger.command(cmd)
|
||||||
|
if subprocess.call(cmd) != 0:
|
||||||
|
Logger.error('Bzr push failed.')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if branch:
|
|
||||||
cmd = ['debcommit']
|
|
||||||
Logger.command(cmd)
|
|
||||||
if subprocess.call(cmd) != 0:
|
|
||||||
Logger.error('Bzr commit failed.')
|
|
||||||
sys.exit(1)
|
|
||||||
cmd = ['bzr', 'mark-uploaded']
|
|
||||||
Logger.command(cmd)
|
|
||||||
if subprocess.call(cmd) != 0:
|
|
||||||
Logger.error('Bzr tagging failed.')
|
|
||||||
sys.exit(1)
|
|
||||||
cmd = ['bzr', 'push', ':parent']
|
|
||||||
Logger.command(cmd)
|
|
||||||
if subprocess.call(cmd) != 0:
|
|
||||||
Logger.error('Bzr push failed.')
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# Leave while loop if everything worked
|
# Leave while loop if everything worked
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user