update-maintainer: Correctly update the Maintainer field to the new Ubuntu

Developers address (instead of the calling user) when the package is not
in Debian.
This commit is contained in:
Stefano Rivera 2010-09-13 22:23:09 +02:00
parent 4140992fab
commit 7746e67d74
2 changed files with 8 additions and 1 deletions

5
debian/changelog vendored
View File

@ -17,6 +17,11 @@ ubuntu-dev-tools (0.102) UNRELEASED; urgency=low
* sponsor-patch: New script to download a patch from a Launchpad bug, patch
the source package, build, check and uploads it (to Ubuntu or a PPA).
[ Stefano Rivera ]
* update-maintainer: Correctly update the Maintainer field to the new Ubuntu
Developers address (instead of the calling user) when the package is not
in Debian.
-- Benjamin Drung <bdrung@ubuntu.com> Sun, 15 Aug 2010 02:22:08 +0200
ubuntu-dev-tools (0.101) unstable; urgency=low

View File

@ -98,7 +98,9 @@ if 'Ubuntu Developers' in maintainer_name and \
print "Ubuntu Developers is already set as maintainer."
sys.exit(0)
if not (ubuntutools.packages.checkIsInDebian(package_name, 'unstable') or ubuntutools.packages.checkIsInDebian(package_name, 'experimental')):
if not old_maintainer and not (
ubuntutools.packages.checkIsInDebian(package_name, 'unstable')
or ubuntutools.packages.checkIsInDebian(package_name, 'experimental')):
user_email_address = os.getenv('DEBEMAIL')
if not user_email_address:
user_email_address = os.getenv('EMAIL')