mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
update-maintainer: Don't change the Maintainer field if the email is set
to a @lists.ubuntu.com address.
This commit is contained in:
parent
6828ae2e8c
commit
794bd9bd13
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -12,8 +12,10 @@ ubuntu-dev-tools (0.102) UNRELEASED; urgency=low
|
|||||||
Spalinger for the patch (LP: #365147).
|
Spalinger for the patch (LP: #365147).
|
||||||
* Update the man page of suspicious-source to match the rewrite.
|
* Update the man page of suspicious-source to match the rewrite.
|
||||||
* syncpackage: Don't upload orig tarball if not needed.
|
* syncpackage: Don't upload orig tarball if not needed.
|
||||||
|
* update-maintainer: Don't change the Maintainer field if the email is set
|
||||||
|
to a @lists.ubuntu.com address.
|
||||||
|
|
||||||
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 14 Aug 2010 18:19:53 +0200
|
-- Benjamin Drung <bdrung@ubuntu.com> Sat, 14 Aug 2010 19:55:36 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.101) unstable; urgency=low
|
ubuntu-dev-tools (0.101) unstable; urgency=low
|
||||||
|
|
||||||
|
@ -75,11 +75,22 @@ maintainer_field = re.findall('(Maintainer:) (.*) (<.*>)', file_contents)
|
|||||||
maintainer_name = maintainer_field[0][1]
|
maintainer_name = maintainer_field[0][1]
|
||||||
maintainer_mail = maintainer_field[0][2]
|
maintainer_mail = maintainer_field[0][2]
|
||||||
|
|
||||||
if maintainer_mail.find("@ubuntu.com") != -1:
|
if maintainer_mail.endswith("@ubuntu.com>"):
|
||||||
if not options.quiet:
|
if not options.quiet:
|
||||||
print "Maintainer email is set to an @ubuntu.com address - doing nothing."
|
print "Maintainer email is set to an @ubuntu.com address - doing nothing."
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
# Prior May 2009 these Maintainers were used:
|
||||||
|
# main or restricted: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
|
||||||
|
# universe or multiverse: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
|
||||||
|
old_maintainer = maintainer_mail in ("<ubuntu-devel-discuss@lists.ubuntu.com>",
|
||||||
|
"<ubuntu-motu@lists.ubuntu.com>")
|
||||||
|
if maintainer_mail.endswith("@lists.ubuntu.com>") and not old_maintainer:
|
||||||
|
if not options.quiet:
|
||||||
|
print "Maintainer email is set to an @lists.ubuntu.com address - doing nothing."
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
# Check if Maintainer field is as approved in TB decision.
|
# Check if Maintainer field is as approved in TB decision.
|
||||||
if 'Ubuntu Developers' in maintainer_name and \
|
if 'Ubuntu Developers' in maintainer_name and \
|
||||||
'<ubuntu-devel-discuss@lists.ubuntu.com>' in maintainer_mail:
|
'<ubuntu-devel-discuss@lists.ubuntu.com>' in maintainer_mail:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user