1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

Fix encode method call

This broke with
--define="%_buildhost foo"
This commit is contained in:
Bernhard M. Wiedemann 2019-05-25 13:36:10 +02:00
parent c4979dcde2
commit 13a174bdcc

View File

@ -695,7 +695,7 @@ def main(apiurl, opts, argv):
s = '' s = ''
for i in opts.define: for i in opts.define:
s += "%%define %s\n" % i s += "%%define %s\n" % i
build_descr_data = s.encode + build_descr_data build_descr_data = s.encode() + build_descr_data
cpiodata = None cpiodata = None
servicefile = os.path.join(os.path.dirname(build_descr), "_service") servicefile = os.path.join(os.path.dirname(build_descr), "_service")