1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-05 20:58:42 +02: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

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")