submittodebian: Don't parse the entire changelog, to avoid bumping into

past illegal version numbers (LP: #727314)
This commit is contained in:
Stefano Rivera 2011-09-09 20:20:29 +02:00
parent 178456394e
commit de25fb4a6c
2 changed files with 6 additions and 3 deletions

2
debian/changelog vendored
View File

@ -9,6 +9,8 @@ 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)
[ Colin Watson ]
* syncpackage: Fix typo.

View File

@ -45,9 +45,10 @@ if not os.path.exists('/usr/bin/reportbug'):
sys.exit(1)
def get_most_recent_debian_version(changelog):
for version in changelog.get_versions():
if not re.search('(ubuntu|build)', version.full_version):
return version.full_version
for block in changelog._blocks:
version = block.version.full_version
if not re.search('(ubuntu|build)', version):
return version
def get_bug_body(changelog):
msg = """In Ubuntu, the attached patch was applied to achieve the following: