diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index 9a0ddb8536..f8b532220a 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py | |||
@@ -54,7 +54,7 @@ def file_translate(file): | |||
54 | return ft | 54 | return ft |
55 | 55 | ||
56 | def filedeprunner(arg): | 56 | def filedeprunner(arg): |
57 | import re | 57 | import re, subprocess, shlex |
58 | 58 | ||
59 | (pkg, pkgfiles, rpmdeps, pkgdest) = arg | 59 | (pkg, pkgfiles, rpmdeps, pkgdest) = arg |
60 | provides = {} | 60 | provides = {} |
@@ -89,8 +89,11 @@ def filedeprunner(arg): | |||
89 | 89 | ||
90 | return provides, requires | 90 | return provides, requires |
91 | 91 | ||
92 | dep_pipe = os.popen(rpmdeps + " " + " ".join(pkgfiles)) | 92 | try: |
93 | 93 | dep_popen = subprocess.Popen(shlex.split(rpmdeps) + pkgfiles, stdout=subprocess.PIPE) | |
94 | provides, requires = process_deps(dep_pipe, pkg, pkgdest, provides, requires) | 94 | provides, requires = process_deps(dep_popen.stdout, pkg, pkgdest, provides, requires) |
95 | except OSError as e: | ||
96 | bb.error("rpmdeps: '%s' command failed, '%s'" % (shlex.split(rpmdeps) + pkgfiles, e)) | ||
97 | raise e | ||
95 | 98 | ||
96 | return (pkg, provides, requires) | 99 | return (pkg, provides, requires) |