debconf correctly quote strings
This commit is contained in:
parent
5795796546
commit
b8efbb1cb3
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ def set_selection(module, pkg, question, vtype, value, unseen):
|
||||||
data = ' '.join([ question, vtype, value ])
|
data = ' '.join([ question, vtype, value ])
|
||||||
|
|
||||||
setsel = module.get_bin_path('debconf-set-selections', True)
|
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:
|
if unseen:
|
||||||
cmd.append('-u')
|
cmd.append('-u')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue