mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-17 03:41:28 +00:00
* submittodebian:
- Don't parse the entire changelog, to avoid bumping into past illegal version numbers (LP: #727314) - Iterate over changelog blocks rather than using Chancgelog's private _blocks list. [ Stefano Rivera ] *
This commit is contained in:
parent
a04a6a9602
commit
1fc55fe66d
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -9,8 +9,11 @@ ubuntu-dev-tools (0.131) UNRELEASED; urgency=low
|
|||||||
(LP: #845487)
|
(LP: #845487)
|
||||||
* requestsync: Add nice error messages to gpg-signing code, rather than
|
* requestsync: Add nice error messages to gpg-signing code, rather than
|
||||||
simple assertions (LP: #537288)
|
simple assertions (LP: #537288)
|
||||||
* submittodebian: Don't parse the entire changelog, to avoid bumping into
|
* submittodebian:
|
||||||
past illegal version numbers (LP: #727314)
|
- Don't parse the entire changelog, to avoid bumping into past illegal
|
||||||
|
version numbers (LP: #727314)
|
||||||
|
- Iterate over changelog blocks rather than using Chancgelog's private
|
||||||
|
_blocks list.
|
||||||
* ubuntutools.update_maintainer: Don't use strict changelog parsing
|
* ubuntutools.update_maintainer: Don't use strict changelog parsing
|
||||||
(LP: #806633)
|
(LP: #806633)
|
||||||
* setup-packaging-environment: Software Sources isn't on the Administration
|
* setup-packaging-environment: Software Sources isn't on the Administration
|
||||||
@ -19,6 +22,9 @@ ubuntu-dev-tools (0.131) UNRELEASED; urgency=low
|
|||||||
[ Colin Watson ]
|
[ Colin Watson ]
|
||||||
* syncpackage: Fix typo.
|
* syncpackage: Fix typo.
|
||||||
|
|
||||||
|
[ Stefano Rivera ]
|
||||||
|
*
|
||||||
|
|
||||||
-- Stefano Rivera <stefanor@debian.org> Thu, 08 Sep 2011 23:13:05 +0200
|
-- Stefano Rivera <stefanor@debian.org> Thu, 08 Sep 2011 23:13:05 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.130) unstable; urgency=low
|
ubuntu-dev-tools (0.130) unstable; urgency=low
|
||||||
|
@ -45,12 +45,13 @@ if not os.path.exists('/usr/bin/reportbug'):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def get_most_recent_debian_version(changelog):
|
def get_most_recent_debian_version(changelog):
|
||||||
for block in changelog._blocks:
|
for block in changelog:
|
||||||
version = block.version.full_version
|
version = block.version.full_version
|
||||||
if not re.search('(ubuntu|build)', version):
|
if not re.search('(ubuntu|build)', version):
|
||||||
return version
|
return version
|
||||||
|
|
||||||
def get_bug_body(changelog):
|
def get_bug_body(changelog):
|
||||||
|
entry = next(iter(changelog))
|
||||||
msg = """In Ubuntu, the attached patch was applied to achieve the following:
|
msg = """In Ubuntu, the attached patch was applied to achieve the following:
|
||||||
|
|
||||||
## ---------------- REPLACE THIS WITH ACTUAL INFORMATION ---------------------
|
## ---------------- REPLACE THIS WITH ACTUAL INFORMATION ---------------------
|
||||||
@ -63,14 +64,15 @@ def get_bug_body(changelog):
|
|||||||
%s
|
%s
|
||||||
|
|
||||||
Thanks for considering the patch.
|
Thanks for considering the patch.
|
||||||
""" % ("\n".join([a for a in changelog._blocks[0].changes()]))
|
""" % ("\n".join([a for a in entry.changes()]))
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
def gen_debdiff(changelog):
|
def gen_debdiff(changelog):
|
||||||
pkg = changelog.package
|
pkg = changelog.package
|
||||||
|
|
||||||
oldver = changelog._blocks[1].version
|
changelog_it = iter(changelog)
|
||||||
newver = changelog._blocks[0].version
|
newver = next(changelog_it).version
|
||||||
|
oldver = next(changelog_it).version
|
||||||
|
|
||||||
(fd, debdiff) = mkstemp()
|
(fd, debdiff) = mkstemp()
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user