Skip to content

Commit

Permalink
Add support for DEBEMAIL envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Jul 3, 2020
1 parent 1cb32a3 commit 99d74f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stdeb/command/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def get_debinfo(self):

if 1:
# set default maintainer
if (self.distribution.get_maintainer() != 'UNKNOWN' and
if os.environ.get('DEBEMAIL'):
guess_maintainer = "%s <%s>" % (os.environ.get('DEBFULLNAME',
os.environ['DEBEMAIL']),
os.environ['DEBEMAIL'])
elif (self.distribution.get_maintainer() != 'UNKNOWN' and
self.distribution.get_maintainer_email() != 'UNKNOWN'):
guess_maintainer = "%s <%s>"%(
self.distribution.get_maintainer(),
Expand Down

0 comments on commit 99d74f1

Please sign in to comment.