diff options
Diffstat (limited to 'meta/lib/oe/patch.py')
-rw-r--r-- | meta/lib/oe/patch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 8de73a7037..244f6c5cf2 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py | |||
@@ -17,7 +17,7 @@ class CmdError(bb.BBHandledException): | |||
17 | 17 | ||
18 | 18 | ||
19 | def runcmd(args, dir = None): | 19 | def runcmd(args, dir = None): |
20 | import subprocess, pipes | 20 | import pipes |
21 | 21 | ||
22 | if dir: | 22 | if dir: |
23 | olddir = os.path.abspath(os.curdir) | 23 | olddir = os.path.abspath(os.curdir) |
@@ -30,7 +30,7 @@ def runcmd(args, dir = None): | |||
30 | args = [ pipes.quote(str(arg)) for arg in args ] | 30 | args = [ pipes.quote(str(arg)) for arg in args ] |
31 | cmd = " ".join(args) | 31 | cmd = " ".join(args) |
32 | # print("cmd: %s" % cmd) | 32 | # print("cmd: %s" % cmd) |
33 | (exitstatus, output) = subprocess.getstatusoutput(cmd) | 33 | (exitstatus, output) = oe.utils.getstatusoutput(cmd) |
34 | if exitstatus != 0: | 34 | if exitstatus != 0: |
35 | raise CmdError(exitstatus >> 8, output) | 35 | raise CmdError(exitstatus >> 8, output) |
36 | return output | 36 | return output |