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:
parent
c4979dcde2
commit
13a174bdcc
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user