Merge branch 'lp-1193941' of git+ssh://git.launchpad.net/~logan/ubuntu-dev-tools

MR: https://code.launchpad.net/~logan/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/395616
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
Mattia Rizzolo 2020-12-27 11:40:18 +01:00
commit c5b5d554bc
No known key found for this signature in database
GPG Key ID: 0816B9E18C762BAD
2 changed files with 7 additions and 0 deletions

5
debian/changelog vendored
View File

@ -9,6 +9,11 @@ ubuntu-dev-tools (0.178) UNRELEASED; urgency=medium
[ You-Sheng Yang ]
* Add a dependency on tzdata, used by mk-sbuild.
[ Logan Rosen ]
* import-bug-from-debian:
+ Limit bug description length to 50k chars to support Launchpad's limits.
LP: #1193941
-- Mattia Rizzolo <mattia@debian.org> Tue, 22 Dec 2020 17:50:52 +0100
ubuntu-dev-tools (0.177) unstable; urgency=medium

View File

@ -117,6 +117,8 @@ def main():
description = ('Imported from Debian bug http://bugs.debian.org/%d:\n\n%s' %
(bug_num, summary))
# LP limits descriptions to 50K chars
description = (description[:49994] + ' [...]') if len(description) > 50000 else description
Logger.debug('Target: %s' % target)
Logger.debug('Subject: %s' % subject)