debconf correctly quote strings

This commit is contained in:
John Barker 2014-04-02 20:43:12 +01:00
parent dae8627e04
commit ed4717a978

View file

@ -107,7 +107,7 @@ def set_selection(module, pkg, question, vtype, value, unseen):
data = ' '.join([ question, vtype, value ])
setsel = module.get_bin_path('debconf-set-selections', True)
cmd = ["echo '%s %s' |" % (pipes.quote(pkg), pipes.quote(data)), setsel]
cmd = ["echo %s %s |" % (pipes.quote(pkg), pipes.quote(data)), setsel]
if unseen:
cmd.append('-u')