diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/perforce.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/perforce.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py index cbdc84853c..6abf15d65a 100644 --- a/bitbake/lib/bb/fetch2/perforce.py +++ b/bitbake/lib/bb/fetch2/perforce.py | |||
@@ -27,6 +27,7 @@ BitBake build tools. | |||
27 | 27 | ||
28 | from future_builtins import zip | 28 | from future_builtins import zip |
29 | import os | 29 | import os |
30 | import subprocess | ||
30 | import logging | 31 | import logging |
31 | import bb | 32 | import bb |
32 | from bb import data | 33 | from bb import data |
@@ -184,7 +185,7 @@ class Perforce(FetchMethod): | |||
184 | dest = list[0][len(path)+1:] | 185 | dest = list[0][len(path)+1:] |
185 | where = dest.find("#") | 186 | where = dest.find("#") |
186 | 187 | ||
187 | os.system("%s%s print -o %s/%s %s" % (p4cmd, p4opt, module, dest[:where], list[0])) | 188 | subprocess.call("%s%s print -o %s/%s %s" % (p4cmd, p4opt, module, dest[:where], list[0]), shell=True) |
188 | count = count + 1 | 189 | count = count + 1 |
189 | 190 | ||
190 | if count == 0: | 191 | if count == 0: |