Allow setting int arguments for pungi-buildinstall plugin.
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
parent
d1eac95cda
commit
609a555597
@ -195,6 +195,8 @@ class KojiWrapper(object):
|
|||||||
if v:
|
if v:
|
||||||
if isinstance(v, bool):
|
if isinstance(v, bool):
|
||||||
cmd.append(k)
|
cmd.append(k)
|
||||||
|
elif isinstance(v, int):
|
||||||
|
cmd.append("%s=%d" % (k, v))
|
||||||
else:
|
else:
|
||||||
for arg in force_list(v):
|
for arg in force_list(v):
|
||||||
cmd.append(shlex_quote("%s=%s" % (k, arg)))
|
cmd.append(shlex_quote("%s=%s" % (k, arg)))
|
||||||
@ -233,6 +235,8 @@ class KojiWrapper(object):
|
|||||||
if v:
|
if v:
|
||||||
if isinstance(v, bool):
|
if isinstance(v, bool):
|
||||||
cmd.append(k)
|
cmd.append(k)
|
||||||
|
elif isinstance(v, int):
|
||||||
|
cmd.append("%s=%d" % (k, v))
|
||||||
else:
|
else:
|
||||||
for arg in force_list(v):
|
for arg in force_list(v):
|
||||||
cmd.append(shlex_quote("%s=%s" % (k, arg)))
|
cmd.append(shlex_quote("%s=%s" % (k, arg)))
|
||||||
|
Loading…
Reference in New Issue
Block a user