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
0444ee25
Verified
Commit
0444ee25
authored
Aug 29, 2022
by
Baptiste Beauplat
Browse files
Add support for multipart email changes from nntp (Closes:
#144
)
parent
754dec40
Changes
1
Show whitespace changes
Inline
Side-by-side
debexpo/packages/tasks.py
View file @
0444ee25
...
@@ -225,10 +225,14 @@ def mark_packages_as_uploaded(packages, debian=False):
...
@@ -225,10 +225,14 @@ def mark_packages_as_uploaded(packages, debian=False):
def
convert_mail_to_changes
(
mail
):
def
convert_mail_to_changes
(
mail
):
if
not
mail
or
mail
.
is_multipart
()
:
if
not
mail
:
return
return
if
mail
.
is_multipart
():
changes
=
mail
.
get_payload
()[
0
].
get_payload
(
decode
=
True
)
else
:
changes
=
mail
.
get_payload
(
decode
=
True
)
changes
=
mail
.
get_payload
(
decode
=
True
)
changes
=
Changes
(
changes
)
changes
=
Changes
(
changes
)
return
changes
return
changes
...
...
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