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
d25c095b
Commit
d25c095b
authored
Aug 16, 2012
by
Clément Schreiner
Browse files
Further updates to the plugin.
Should be okay once the template has been updated too.
parent
c2ac6866
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/plugins/closedbugs.py
View file @
d25c095b
...
...
@@ -80,6 +80,7 @@ class ClosedBug(PluginResult):
exists
=
bool_field
(
'exists'
)
belongs
=
bool_field
(
'exists'
)
number
=
int_field
(
'number'
)
is_error
=
bool_field
(
'is_error'
)
def
__str__
(
self
):
if
self
.
exists
:
...
...
@@ -146,18 +147,19 @@ class ClosedBugsPlugin(QAPlugin):
nb_closed
=
0
nb_errors
=
0
wnpp
=
'f
alse
'
wnpp
=
F
alse
for
bug
in
bugs
:
bug_result
=
self
.
new_result
(
ClosedBug
,
number
=
bug
)
if
not
bug
in
raw_bugs
:
bug_result
[
'exists'
]
=
'false'
bug_result
[
'belongs'
]
=
'false'
bug_result
.
exists
=
False
bug_result
.
belongs
=
False
bug_result
.
is_error
=
False
severity
=
max
(
severity
,
constants
.
PLUGIN_SEVERITY_ERROR
)
nb_errors
+=
1
continue
bug_result
[
'
exists
'
]
=
't
rue
'
bug_result
.
exists
=
T
rue
package
=
raw_bugs
[
bug
][
'package'
]
bug_result
[
'name'
]
=
package
...
...
@@ -165,18 +167,18 @@ class ClosedBugsPlugin(QAPlugin):
bug_result
[
'severity'
]
=
raw_bugs
[
bug
][
'severity'
]
source
=
raw_bugs
[
'source'
].
split
(
', '
)
bug_result
[
'
belongs
'
]
=
't
rue
'
bug_result
.
belongs
=
T
rue
if
name
==
'wnpp'
:
bug_result
[
'
wnpp
'
]
=
't
rue
'
wnpp
=
't
rue
'
bug_result
.
wnpp
=
T
rue
wnpp
=
T
rue
nb_closed
+=
1
elif
self
.
changes
[
'Source'
]
in
source
:
nb_closed
+=
1
else
:
bug_result
[
'
belongs
'
]
=
'f
alse
'
bug_result
.
belongs
=
F
alse
nb_errors
+=
1
severity
=
max
(
severity
,
constants
.
PLUGIN_SEVERITY_ERROR
)
...
...
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