Subject: | source plugin does no longer work for configuration commands |
I am trying to write a chef provider (package install adapter) for cpan,
and found that I wanted to install packages in sub-directories as
uninstall left files around. With 0.82 I was able to do this with
(tagged on i on the end of course):
$ echo -e "s conf makeflags PREFIX=...\ns conf prereqs 0" | cpanp
/source /dev/stdin
Key 'makeflags' was set to 'PREFIX=...'
Key 'prereqs' was set to '0'
With 0.9011 the above terminates after the first line. This is because
_set_conf unconditionally returns 1 and I think #47250 now propagate
that to dispatch_on_input and back to the plugin which terminates when
given 1 (perhaps meant for 'q' and errors?).
Suggest having _set_conf on success.