processing: fix scan_metadata.py when the new maintainer name is None
This commit is contained in:
parent
c130e59b28
commit
84e32e1554
@ -136,11 +136,13 @@ class ScanMetadata(object):
|
||||
|
||||
for maintainer in pkg.maintainers.all():
|
||||
email = maintainer.email
|
||||
name = maintainer.name
|
||||
if email in old_maintainers:
|
||||
pkg.maintainers.remove(maintainer)
|
||||
if (email in maintainers and
|
||||
email == maintainer.name and
|
||||
maintainers[email].name != maintainer.name):
|
||||
email == name and
|
||||
maintainers[email].name != name and
|
||||
maintainers[email].name):
|
||||
maintainer.name = maintainers[email].name
|
||||
maintainer.save()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user