aboutsummaryrefslogtreecommitdiffstats
path: root/debian/install
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-04-16 17:40:34 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-04-16 18:21:15 +0100
commitb7b89e5d2701a8c912518cc9e3c5cf6f3929c6f0 (patch)
treef2b024808b8a26edd4b86eb81f0a0a4a3f440d9f /debian/install
parentfc908156bb888effc3e973f09ede606b7ab1476c (diff)
downloadsos-b7b89e5d2701a8c912518cc9e3c5cf6f3929c6f0.tar.gz
Fix command parameter aliasing and exception handling
The addition of 'runat' exposed a bug in the parameter passing for commands. We pack a tuple into a list in add_cmd_output() and then unpack it in collect_cmd_output(). These functions need to be careful in the use of positional vs. keyword arguments; passing keywords as though they were positional can lead to e.g. an integer timeout value appearing in the tuple member for 'suggest_filename' causing an exception when we attempt to pass the value to get_cmd_output_now(). Fix this by ensuring that all keyword args are passed explicitly through these functions and improve the debug logging by printing the tuple we are packing/unpacking. This also removes the exception handling block from the function collect_cmd_output() - this routine should allow exceptions to propagate up so that they can be handled by the --debug logic. The 'command not found' case is already logged in the generic get_command_output() wrapper. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'debian/install')
0 files changed, 0 insertions, 0 deletions