diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oe/package_manager/rpm/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager/rpm/__init__.py b/meta/lib/oe/package_manager/rpm/__init__.py index 323ec5008f..20e6cb8744 100644 --- a/meta/lib/oe/package_manager/rpm/__init__.py +++ b/meta/lib/oe/package_manager/rpm/__init__.py | |||
| @@ -330,8 +330,15 @@ class RpmPM(PackageManager): | |||
| 330 | return output | 330 | return output |
| 331 | except subprocess.CalledProcessError as e: | 331 | except subprocess.CalledProcessError as e: |
| 332 | if print_output: | 332 | if print_output: |
| 333 | e_output = e.output.decode("utf-8") | ||
| 334 | extra_info = "" | ||
| 335 | if "install" in dnf_args: | ||
| 336 | if "Error: Unable to find a match:" in e_output: | ||
| 337 | no_match_pkgs = re.search(r'Error: Unable to find a match: ([a-z0-9+\-\._\s]+)', e_output).group(1).split() | ||
| 338 | for pkg in no_match_pkgs: | ||
| 339 | extra_info += self.get_missing_pkg_reason(pkg) | ||
| 333 | (bb.note, bb.fatal)[fatal]("Could not invoke dnf. Command " | 340 | (bb.note, bb.fatal)[fatal]("Could not invoke dnf. Command " |
| 334 | "'%s' returned %d:\n%s" % (' '.join(cmd), e.returncode, e.output.decode("utf-8"))) | 341 | "'%s' returned %d:\n%s%s" % (' '.join(cmd), e.returncode, e_output, extra_info)) |
| 335 | else: | 342 | else: |
| 336 | (bb.note, bb.fatal)[fatal]("Could not invoke dnf. Command " | 343 | (bb.note, bb.fatal)[fatal]("Could not invoke dnf. Command " |
| 337 | "'%s' returned %d:" % (' '.join(cmd), e.returncode)) | 344 | "'%s' returned %d:" % (' '.join(cmd), e.returncode)) |
