[
https://issues.apache.org/jira/browse/PROTON-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156295#comment-17156295
]
Jiri Daněk commented on PROTON-2222:
------------------------------------
To reproduce this, run
{noformat}
% python scripts/env.py =B echo lalala
Traceback (most recent call last):
File "/home/jdanek/repos/qpid/qpid-proton/scripts/env.py", line 67, in
<module>
sys.exit(main())
File "/home/jdanek/repos/qpid/qpid-proton/scripts/env.py", line 50, in main
raise Exception("Error: incorrect format for env var: '%s'" % str(args[x]))
NameError: name 'x' is not defined
{noformat}
> Undefined variable `x` in scripts/env.py
> ----------------------------------------
>
> Key: PROTON-2222
> URL: https://issues.apache.org/jira/browse/PROTON-2222
> Project: Qpid Proton
> Issue Type: Bug
> Components: build
> Affects Versions: proton-c-0.31.0
> Reporter: Jiri Daněk
> Assignee: Jiri Daněk
> Priority: Major
>
> {noformat}
> # pull out each name value pair
> while len(args):
> z = args[0].split("=", 1)
> if len(z) != 2:
> break # done with env args
> if len(z[0]) == 0:
> raise Exception("Error: incorrect format for env var: '%s'" %
> str(args[x]))
> > x is not defined. Change its name or define it before using itWhy is this
> > an issue?
> > 2 years ago L50 Bug Blocker Open Not assigned 10min effort
> del args[0]
> if len(z[1]) == 0:
> # value is not present, so delete it
> if z[0] in new_env:
> del new_env[z[0]]
> else:
> new_env[z[0]] = z[1]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]