Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
04e1258e
Commit
04e1258e
authored
Feb 22, 2012
by
Nicolas Dandrimont
🤔
Browse files
Take into account the source package instead of the binary name in the closedbugs plugin.
parent
a488faff
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/plugins/closedbugs.py
View file @
04e1258e
...
@@ -62,9 +62,6 @@ class ClosedBugsPlugin(BasePlugin):
...
@@ -62,9 +62,6 @@ class ClosedBugsPlugin(BasePlugin):
bugs
=
[
int
(
x
)
for
x
in
self
.
changes
[
'Closes'
].
split
()]
bugs
=
[
int
(
x
)
for
x
in
self
.
changes
[
'Closes'
].
split
()]
binary_packages
=
self
.
changes
[
'Description'
].
split
(
'
\n
'
)
binary_packages
=
[
t
.
strip
()
for
t
in
binary_packages
]
if
bugs
:
if
bugs
:
log
.
debug
(
'Creating SOAP proxy to bugs.debian.org'
)
log
.
debug
(
'Creating SOAP proxy to bugs.debian.org'
)
try
:
try
:
...
@@ -106,7 +103,7 @@ class ClosedBugsPlugin(BasePlugin):
...
@@ -106,7 +103,7 @@ class ClosedBugsPlugin(BasePlugin):
name
=
data
[
"raw"
][
bug
][
'package'
]
name
=
data
[
"raw"
][
bug
][
'package'
]
if
self
.
_package_in_descriptions
(
name
,
binary_packages
)
or
name
==
"wnpp"
:
if
data
[
"raw"
][
bug
][
'source'
]
==
self
.
changes
[
"Source"
]
or
name
==
"wnpp"
:
data
[
"bugs"
][
name
].
append
((
bug
,
data
[
"raw"
][
bug
][
"subject"
],
data
[
"raw"
][
bug
][
"severity"
]))
data
[
"bugs"
][
name
].
append
((
bug
,
data
[
"raw"
][
bug
][
"subject"
],
data
[
"raw"
][
bug
][
"severity"
]))
else
:
else
:
data
[
"errors"
].
append
(
'Bug #%s does not belong to this package'
%
bug
)
data
[
"errors"
].
append
(
'Bug #%s does not belong to this package'
%
bug
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment