diff options
| -rw-r--r-- | meta/lib/oe/package_manager.py | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 05a1a357de..11a1a72870 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
| @@ -16,11 +16,14 @@ def create_index(arg): | |||
| 16 | 16 | ||
| 17 | try: | 17 | try: |
| 18 | bb.note("Executing '%s' ..." % index_cmd) | 18 | bb.note("Executing '%s' ..." % index_cmd) |
| 19 | subprocess.check_output(index_cmd, stderr=subprocess.STDOUT, shell=True) | 19 | result = subprocess.check_output(index_cmd, stderr=subprocess.STDOUT, shell=True) |
| 20 | except subprocess.CalledProcessError as e: | 20 | except subprocess.CalledProcessError as e: |
| 21 | return("Index creation command '%s' failed with return code %d:\n%s" % | 21 | return("Index creation command '%s' failed with return code %d:\n%s" % |
| 22 | (e.cmd, e.returncode, e.output)) | 22 | (e.cmd, e.returncode, e.output)) |
| 23 | 23 | ||
| 24 | if result: | ||
| 25 | bb.note(result) | ||
| 26 | |||
| 24 | return None | 27 | return None |
| 25 | 28 | ||
| 26 | 29 | ||
| @@ -120,7 +123,10 @@ class RpmIndexer(Indexer): | |||
| 120 | bb.note("There are no packages in %s" % self.deploy_dir) | 123 | bb.note("There are no packages in %s" % self.deploy_dir) |
| 121 | return | 124 | return |
| 122 | 125 | ||
| 123 | oe.utils.multiprocess_exec(index_cmds, create_index) | 126 | result = oe.utils.multiprocess_exec(index_cmds, create_index) |
| 127 | if result: | ||
| 128 | bb.fatal('%s' % ('\n'.join(result))) | ||
| 129 | |||
| 124 | 130 | ||
| 125 | class OpkgIndexer(Indexer): | 131 | class OpkgIndexer(Indexer): |
| 126 | def write_index(self): | 132 | def write_index(self): |
| @@ -156,7 +162,10 @@ class OpkgIndexer(Indexer): | |||
| 156 | bb.note("There are no packages in %s!" % self.deploy_dir) | 162 | bb.note("There are no packages in %s!" % self.deploy_dir) |
| 157 | return | 163 | return |
| 158 | 164 | ||
| 159 | oe.utils.multiprocess_exec(index_cmds, create_index) | 165 | result = oe.utils.multiprocess_exec(index_cmds, create_index) |
| 166 | if result: | ||
| 167 | bb.fatal('%s' % ('\n'.join(result))) | ||
| 168 | |||
| 160 | 169 | ||
| 161 | 170 | ||
| 162 | class DpkgIndexer(Indexer): | 171 | class DpkgIndexer(Indexer): |
| @@ -200,7 +209,10 @@ class DpkgIndexer(Indexer): | |||
| 200 | bb.note("There are no packages in %s" % self.deploy_dir) | 209 | bb.note("There are no packages in %s" % self.deploy_dir) |
| 201 | return | 210 | return |
| 202 | 211 | ||
| 203 | oe.utils.multiprocess_exec(index_cmds, create_index) | 212 | result = oe.utils.multiprocess_exec(index_cmds, create_index) |
| 213 | if result: | ||
| 214 | bb.fatal('%s' % ('\n'.join(result))) | ||
| 215 | |||
| 204 | 216 | ||
| 205 | 217 | ||
| 206 | class PkgsList(object): | 218 | class PkgsList(object): |
