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