Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1023705 > unrolled thread
| Started by | Brian Murray <brian@ubuntu.com> |
|---|---|
| First post | 2020-09-03 23:10 +0200 |
| Last post | 2020-09-03 23:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.debian.bugs.dist
Bug#969510: import-bug-from-debian: can create bad bug descriptions Brian Murray <brian@ubuntu.com> - 2020-09-03 23:10 +0200
| From | Brian Murray <brian@ubuntu.com> |
|---|---|
| Date | 2020-09-03 23:10 +0200 |
| Subject | Bug#969510: import-bug-from-debian: can create bad bug descriptions |
| Message-ID | <AL4Ex-3MS-1@gated-at.bofh.it> |
Package: ubuntu-dev-tools
Version: 0.177
Severity: normal
Dear Maintainer,
The tool import-bug-from-debian can create bug descriptions which look
like the following:
[<email.message.Message object at 0x7fbe14096fa0>,
<email.message.Message object at 0x7fbe15143820>]
I believe this is because the first message has multiple payloads and
import-bug-from-debian does not handle this. As an example of what goes
wrong please see:
http://launchpad.net/bugs/1894141
I've modified import-bug-from-debian with the following change:
$ diff -Nrup ubuntu-dev-tools-0.177/import-bug-from-debian
import-bug-from-debian
--- ubuntu-dev-tools-0.177/import-bug-from-debian 2019-12-01
10:18:32.000000000 -0800
+++ import-bug-from-debian 2020-09-03 13:54:51.293360839 -0700
@@ -106,7 +106,10 @@ def main():
bug_num = bug.bug_num
subject = bug.subject
log = debianbts.get_bug_log(bug_num)
- summary = log[0]['message'].get_payload()
+ if isinstance(log[0]['message'].get_payload(), str):
+ summary = log[0]['message'].get_payload()
+ else:
+ summary = log[0]['message'].get_payload()[0].get_payload()
target = ubuntu.getSourcePackage(name=ubupackage)
if target is None:
Logger.error("Source package '%s' is not in Ubuntu. Please
specify "
For testing this I used qastaging.launchpad.net.
Back to top | Article view | linux.debian.bugs.dist
csiph-web