mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 10:36:17 +01:00
Fix encode method call
This broke with --define="%_buildhost foo"
This commit is contained in:
parent
c4979dcde2
commit
13a174bdcc
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user