return out
-def exec_cmd_quiet(cmd_and_args, as_shell=False):
- """
- Execute command, catching nothing in the output
-
- Exits if rc non-zero
- """
- return exec_cmd(cmd_and_args, as_shell, 0)
-
-
def exec_native_cmd(cmd_and_args, native_sysroot, catch=3):
"""
Execute native command, catching stderr, stdout
return (rc, out)
-
-def exec_native_cmd_quiet(cmd_and_args, native_sysroot):
- """
- Execute native command, catching nothing in the output
-
- Need to execute as_shell if the command uses wildcards
-
- Always need to execute native commands as_shell
- """
- return exec_native_cmd(cmd_and_args, native_sysroot, 0)
-
-
# kickstart doesn't support variable substution in commands, so this
# is our current simplistic scheme for supporting that