Branch: refs/heads/master Home: https://github.com/openSUSE/osc Commit: 93df86678721e1c74c75ad190636a87d3cf9ba1b https://github.com/openSUSE/osc/commit/93df86678721e1c74c75ad190636a87d3cf9b... Author: Marcus Huewe firstname.lastname@example.org Date: 2013-03-07 (Thu, 07 Mar 2013)
Changed paths: M osc/babysitter.py M osc/build.py M osc/commandline.py M osc/core.py
Log Message: ----------- - added new function core.run_external which can be used to execute an external program
Basically it's just a wrapper around subprocess.call which raises an ExtRuntimeError exception if subprocess.call raised an OSError with errno set to ENOENT (unfortunately the OSError's filename attribute is set to None therefore we cannot print a meaningful error message (that's why an ExtRuntimeError is raised)). Replaced all occurrences of subprocess.call with a corresponding run_external call.