1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-25 11:42:12 +01:00
Fix opts.define codepath in the build module (missing encode).
This commit is contained in:
Marcus Huewe 2019-05-25 23:36:31 +02:00
commit f1100d2a45

View File

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