diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-06-09 21:34:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-12 23:01:22 +0100 |
commit | 3a9a5e85e850e68bc405fa27b97c29b8b5a1ceb2 (patch) | |
tree | 16f85265d30e2528aa09a68ba2c5feeab30bdd3c /meta/lib/oe | |
parent | ba0098e0d16f38e53b8aeeaca894a46dd4577fab (diff) | |
download | poky-3a9a5e85e850e68bc405fa27b97c29b8b5a1ceb2.tar.gz |
package_manager.py: Generate correct RPM package names again
During the transition to RPM4, the package names returned by
RpmPM.list_installed() changed from the expected names of the packages
that were installed into the image to some fictitious source RPM
names.
This restores the original functionality so that the
installed-packages.txt files produced by inheriting buildhistory yet
again contains a list of the names of the installed packages.
(From OE-Core rev: 25a36bcea4c02002d4895ba17f49ced09ae821c2)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/package_manager.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index f1b65bdbbc..caccd7baa9 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -647,7 +647,7 @@ class RpmPM(PackageManager): | |||
647 | symlinks=True) | 647 | symlinks=True) |
648 | 648 | ||
649 | def list_installed(self): | 649 | def list_installed(self): |
650 | output = self._invoke_dnf(["repoquery", "--installed", "--queryformat", "Package: %{name} %{arch} %{version} %{sourcerpm}\nDependencies:\n%{requires}\nRecommendations:\n%{recommends}\nDependenciesEndHere:\n"], | 650 | output = self._invoke_dnf(["repoquery", "--installed", "--queryformat", "Package: %{name} %{arch} %{version} %{name}-%{version}-%{release}.%{arch}.rpm\nDependencies:\n%{requires}\nRecommendations:\n%{recommends}\nDependenciesEndHere:\n"], |
651 | print_output = False) | 651 | print_output = False) |
652 | packages = {} | 652 | packages = {} |
653 | current_package = None | 653 | current_package = None |
@@ -659,8 +659,8 @@ class RpmPM(PackageManager): | |||
659 | current_package = package_info[0] | 659 | current_package = package_info[0] |
660 | package_arch = package_info[1] | 660 | package_arch = package_info[1] |
661 | package_version = package_info[2] | 661 | package_version = package_info[2] |
662 | package_srpm = package_info[3] | 662 | package_rpm = package_info[3] |
663 | packages[current_package] = {"arch":package_arch, "ver":package_version, "filename":package_srpm} | 663 | packages[current_package] = {"arch":package_arch, "ver":package_version, "filename":package_rpm} |
664 | current_deps = [] | 664 | current_deps = [] |
665 | elif line.startswith("Dependencies:"): | 665 | elif line.startswith("Dependencies:"): |
666 | current_state = "dependencies" | 666 | current_state = "dependencies" |