Skip to content

Commit

Permalink
Add support for DEBEMAIL envvar (#168)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Urlichs <[email protected]>
  • Loading branch information
dirk-thomas and smurfix authored Oct 16, 2020
1 parent ae92f0d commit 14a895a
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 @@ -95,7 +95,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 14a895a

Please sign in to comment.