Bug 1257326 - Respect origins set by any caller of CommandLineHelper.add. r=glandium

Origins will be set for any caller of CommandLineHelper.add, but will only
be propagated if args are added to extra_args. This results in an incorrect
origin recorded for mozconfig injected arguments.

MozReview-Commit-ID: 9mJCaNHyd5C
This commit is contained in:
Chris Manchester 2016-05-12 11:55:57 -07:00
Родитель e00bb9ee54
Коммит 2bc5c65931
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -409,8 +409,7 @@ class CommandLineHelper(object):
arg = '%s=%s' % (option.env, env)
origin = 'environment'
if args is self._extra_args:
origin = self._origins.get(arg, origin)
origin = self._origins.get(arg, origin)
for k in (option.name, option.env):
try: