mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
* requestsync: add an option to "Add latest debian version to the title of
the bug" (LP: #132221)
This commit is contained in:
parent
727de19248
commit
ba8541352a
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
ubuntu-dev-tools (0.18) gutsy; urgency=low
|
||||||
|
|
||||||
|
* requestsync: add an option to "Add latest debian version to the title of
|
||||||
|
the bug" (LP: #132221)
|
||||||
|
|
||||||
|
-- Marco Rodrigues <gothicx@sapo.pt> Fri, 05 Oct 2007 14:16:34 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.17) gutsy; urgency=low
|
ubuntu-dev-tools (0.17) gutsy; urgency=low
|
||||||
|
|
||||||
* submittodebian: backed out changes from last upload. This needs Debian Bug
|
* submittodebian: backed out changes from last upload. This needs Debian Bug
|
||||||
|
29
requestsync
29
requestsync
@ -27,6 +27,24 @@ def cur_version_component(sourcepkg, release):
|
|||||||
print "%s doesn't appear to exist in %s, specify -n for a package not in Ubuntu." % (sourcepkg, release)
|
print "%s doesn't appear to exist in %s, specify -n for a package not in Ubuntu." % (sourcepkg, release)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
def cur_deb_version(sourcepkg):
|
||||||
|
''' Return the current debian version of a package in unstable '''
|
||||||
|
madison = subprocess.Popen(['rmadison', '-u', 'debian', '-a', 'source', \
|
||||||
|
'-s', 'unstable', sourcepkg], \
|
||||||
|
stdout=subprocess.PIPE)
|
||||||
|
out = madison.communicate()[0]
|
||||||
|
assert (madison.returncode == 0)
|
||||||
|
|
||||||
|
try:
|
||||||
|
assert out
|
||||||
|
except AssertionError:
|
||||||
|
print "%s doesn't appear to exist in Debian." % sourcepkg
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
return out.split('|')[1].rstrip('[]''').lstrip()
|
||||||
|
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
def debian_changelog(sourcepkg, component, version):
|
def debian_changelog(sourcepkg, component, version):
|
||||||
'''Return the Debian changelog from the latest up to the given version
|
'''Return the Debian changelog from the latest up to the given version
|
||||||
(exclusive).'''
|
(exclusive).'''
|
||||||
@ -65,7 +83,7 @@ def usage():
|
|||||||
|
|
||||||
In some cases, the base version (fork point from Debian) cannot be determined
|
In some cases, the base version (fork point from Debian) cannot be determined
|
||||||
automatically, and you'll get a complete Debian changelog. Specify the correct
|
automatically, and you'll get a complete Debian changelog. Specify the correct
|
||||||
base version in that case."""
|
base version of the package in Ubuntu."""
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -103,6 +121,7 @@ debiancomponent = debian_component(srcpkg)
|
|||||||
# generate bug report
|
# generate bug report
|
||||||
status = "confirmed"
|
status = "confirmed"
|
||||||
subscribe = "ubuntu-archive"
|
subscribe = "ubuntu-archive"
|
||||||
|
deb_version = cur_deb_version(srcpkg)
|
||||||
if sponsorship:
|
if sponsorship:
|
||||||
status = "new"
|
status = "new"
|
||||||
if component in ['main', 'restricted']:
|
if component in ['main', 'restricted']:
|
||||||
@ -118,8 +137,8 @@ report = ''' affects ubuntu%s
|
|||||||
status %s
|
status %s
|
||||||
subscribe %s
|
subscribe %s
|
||||||
|
|
||||||
Please sync %s (%s) from Debian unstable (%s).
|
Please sync %s %s (%s) from Debian unstable (%s).
|
||||||
''' % (affects, status, subscribe, srcpkg, component, debiancomponent)
|
''' % (affects, status, subscribe, srcpkg, deb_version, component, debiancomponent)
|
||||||
|
|
||||||
base_ver = cur_ver
|
base_ver = cur_ver
|
||||||
uidx = base_ver.find('ubuntu')
|
uidx = base_ver.find('ubuntu')
|
||||||
@ -166,9 +185,9 @@ to = 'new@bugs.launchpad.net'
|
|||||||
|
|
||||||
mail = '''From: %s
|
mail = '''From: %s
|
||||||
To: %s
|
To: %s
|
||||||
Subject: Please sync %s (%s) from Debian unstable (%s)
|
Subject: Please sync %s %s (%s) from Debian unstable (%s)
|
||||||
|
|
||||||
%s''' % (myemailaddr, to, srcpkg, component, debiancomponent, signed_report)
|
%s''' % (myemailaddr, to, srcpkg, deb_version, component, debiancomponent, signed_report)
|
||||||
|
|
||||||
print mail
|
print mail
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user