mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-06-07 05:51:29 +00:00
Merge with Iain Lane's branch.
This commit is contained in:
commit
2f90a21dd5
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -19,7 +19,7 @@ ubuntu-dev-tools (0.31) UNRELEASED; urgency=low
|
|||||||
* requestsync:
|
* requestsync:
|
||||||
- Use debian_bundle.changelog.Version for version comparison in
|
- Use debian_bundle.changelog.Version for version comparison in
|
||||||
debian_changelog.
|
debian_changelog.
|
||||||
- Fix --lp for Firefox 3 (LP: 208808):
|
- Fix --lp for Firefox 3 (LP: #208808):
|
||||||
It now tries ~/.lpcookie.txt, ~/.mozilla/*/*/cookies.sqlite and
|
It now tries ~/.lpcookie.txt, ~/.mozilla/*/*/cookies.sqlite and
|
||||||
~/.mozilla/*/*/cookies.txt to find a Launchpad cookie file.
|
~/.mozilla/*/*/cookies.txt to find a Launchpad cookie file.
|
||||||
Also added a hint that you can create a valid file, by logging into
|
Also added a hint that you can create a valid file, by logging into
|
||||||
|
@ -128,7 +128,7 @@ class pbuilder_dist:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if not distro.isalpha():
|
if not distro.isalpha():
|
||||||
print 'Error: «%s» is an invalid distribution codename.'
|
print 'Error: «%s» is an invalid distribution codename.' % distro
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not os.path.isfile(os.path.join('/usr/share/debootstrap/scripts/', distro)):
|
if not os.path.isfile(os.path.join('/usr/share/debootstrap/scripts/', distro)):
|
||||||
|
10
requestsync
10
requestsync
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
# (C) 2007 Canonical Ltd., Steve Kowalik
|
# (C) 2007 Canonical Ltd., Steve Kowalik
|
||||||
# Authors:
|
# Authors:
|
||||||
# Martin Pitt <martin.pitt@ubuntu.com>
|
# Martin Pitt <martin.pitt@ubuntu.com>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
# Michael Bienia <geser@ubuntu.com> (python-launchpad-bugs support)
|
# Michael Bienia <geser@ubuntu.com> (python-launchpad-bugs support)
|
||||||
# Daniel Hahler <ubuntu@thequod.de>
|
# Daniel Hahler <ubuntu@thequod.de>
|
||||||
#
|
#
|
||||||
# License: GPLv2, see /usr/share/common-licenses/GPL
|
# License: GPLv2, see /usr/share/common-licenses/GPL-2
|
||||||
|
|
||||||
import os, sys, urllib, subprocess, getopt
|
import os, sys, urllib, subprocess, getopt
|
||||||
from debian_bundle.changelog import Version
|
from debian_bundle.changelog import Version
|
||||||
@ -418,21 +418,21 @@ if __name__ == '__main__':
|
|||||||
report += debian_changelog(srcpkg, debiancomponent, base_ver) + '\n'
|
report += debian_changelog(srcpkg, debiancomponent, base_ver) + '\n'
|
||||||
|
|
||||||
if need_interaction:
|
if need_interaction:
|
||||||
report = edit_report(title, report, changes_required=True)
|
(_, bug_text) = edit_report(title, report, changes_required=True)
|
||||||
|
|
||||||
# Post sync request using Launchpad interface:
|
# Post sync request using Launchpad interface:
|
||||||
srcpkg = not newsource and srcpkg or None
|
srcpkg = not newsource and srcpkg or None
|
||||||
if use_lp_bugs:
|
if use_lp_bugs:
|
||||||
# Map status to the values expected by lp-bugs
|
# Map status to the values expected by lp-bugs
|
||||||
mapping = {'new': 'New', 'confirmed': 'Confirmed'}
|
mapping = {'new': 'New', 'confirmed': 'Confirmed'}
|
||||||
if post_bug(srcpkg, subscribe, mapping[status], title, report):
|
if post_bug(srcpkg, subscribe, mapping[status], title, bug_text):
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
# Abort on error:
|
# Abort on error:
|
||||||
print 'Something went wrong. No sync request filed.'
|
print 'Something went wrong. No sync request filed.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Mail sync request:
|
# Mail sync request:
|
||||||
if mail_bug(srcpkg, subscribe, status, title, report, keyid):
|
if mail_bug(srcpkg, subscribe, status, title, bug_text, keyid):
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
print 'Something went wrong. No sync request filed.'
|
print 'Something went wrong. No sync request filed.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user