mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
syncpackage: Fix reading of environment variables.
This commit is contained in:
parent
3bccd17b81
commit
fffcab6392
@ -455,7 +455,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
if options.uploader_name is None:
|
if options.uploader_name is None:
|
||||||
if "DEBFULLNAME" in os.environ:
|
if "DEBFULLNAME" in os.environ:
|
||||||
options.uploader_name = ["DEBFULLNAME"]
|
options.uploader_name = os.environ["DEBFULLNAME"]
|
||||||
else:
|
else:
|
||||||
print >> sys.stderr, ("%s: Error: No uploader name specified. You "
|
print >> sys.stderr, ("%s: Error: No uploader name specified. You "
|
||||||
"must pass the --uploader-name option or set "
|
"must pass the --uploader-name option or set "
|
||||||
@ -465,7 +465,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
if options.uploader_email is None:
|
if options.uploader_email is None:
|
||||||
if "DEBEMAIL" in os.environ:
|
if "DEBEMAIL" in os.environ:
|
||||||
options.uploader_email = ["DEBEMAIL"]
|
options.uploader_email = os.environ["DEBEMAIL"]
|
||||||
else:
|
else:
|
||||||
print >> sys.stderr, ("%s: Error: No uploader email address "
|
print >> sys.stderr, ("%s: Error: No uploader email address "
|
||||||
"specified. You must pass the "
|
"specified. You must pass the "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user