Skip to content

Fix --extra-build

Ryan Scott requested to merge (removed):master into master

Currently, any attempt to use the --extra-build flags fails with an error to this effect:

Traceback (most recent call last):
  File "/usr/local/bin/reprotest", line 9, in <module>
    load_entry_point('reprotest==0.7.8', 'console_scripts', 'reprotest')()
  File "/usr/local/lib/python3.5/dist-packages/reprotest-0.7.8-py3.5.egg/reprotest/__init__.py", line 864, in main
    r = run(sys.argv[1:])
  File "/usr/local/lib/python3.5/dist-packages/reprotest-0.7.8-py3.5.egg/reprotest/__init__.py", line 807, in run
    specs.append(spec.extend(extra_build))
NameError: name 'spec' is not defined

This appears to be because of this line of code. In particular, the spec variable is used without having previously been defined.

Note that there used to be a spec variable, but it appears to have been removed in 9b34f0a3. This PR simply adds it back.

Merge request reports

Loading