summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/patch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index af7aa52351..e0f0604251 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -21,6 +21,7 @@ class CmdError(bb.BBHandledException):
21 21
22def runcmd(args, dir = None): 22def runcmd(args, dir = None):
23 import pipes 23 import pipes
24 import subprocess
24 25
25 if dir: 26 if dir:
26 olddir = os.path.abspath(os.curdir) 27 olddir = os.path.abspath(os.curdir)
@@ -33,7 +34,7 @@ def runcmd(args, dir = None):
33 args = [ pipes.quote(str(arg)) for arg in args ] 34 args = [ pipes.quote(str(arg)) for arg in args ]
34 cmd = " ".join(args) 35 cmd = " ".join(args)
35 # print("cmd: %s" % cmd) 36 # print("cmd: %s" % cmd)
36 (exitstatus, output) = oe.utils.getstatusoutput(cmd) 37 (exitstatus, output) = subprocess.getstatusoutput(cmd)
37 if exitstatus != 0: 38 if exitstatus != 0:
38 raise CmdError(cmd, exitstatus >> 8, output) 39 raise CmdError(cmd, exitstatus >> 8, output)
39 if " fuzz " in output: 40 if " fuzz " in output: