heimdal-build: Avoid using python str.format()
authorAmitay Isaacs <amitay@gmail.com>
Wed, 19 Sep 2018 08:31:34 +0000 (18:31 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 21 Sep 2018 01:06:44 +0000 (03:06 +0200)
commitb6efa1507c38d316e8cf05025b47a555ca0d0d0a
tree78ad46128e6c725760d88dba1745a08c300d133b
parentcf7e7710e15016ce5528d7eed8b58d4d3f4934d3
heimdal-build: Avoid using python str.format()

In python 2.6, the format fields need to be numbered explicitly.  This
causes the build to fail on RHEL6/Centos6 with following error:

 File "/home/amitay/samba.git/source4/heimdal_build/wscript_build", line 87, in HEIMDAL_ASN1
    os.path.join(bld.path.abspath(), option_file)))
ValueError: zero length field name in format

To use str.format() in HEIMDAL_ASN1(),

   "--option-file='{}'"  needs to be   "--options-file='{0}'"

Or this fix which avoids str.format() completely.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Sep 21 03:06:44 CEST 2018 on sn-devel-144
source4/heimdal_build/wscript_build