diff options
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r-- | meta/lib/oe/package_manager.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 79cadda682..6d026307f5 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -708,7 +708,7 @@ class PackageManager(object): | |||
708 | pass | 708 | pass |
709 | 709 | ||
710 | @abstractmethod | 710 | @abstractmethod |
711 | def list_installed(self, format=None): | 711 | def list_installed(self): |
712 | pass | 712 | pass |
713 | 713 | ||
714 | @abstractmethod | 714 | @abstractmethod |
@@ -728,7 +728,9 @@ class PackageManager(object): | |||
728 | installed_pkgs_file = os.path.join(self.d.getVar('WORKDIR', True), | 728 | installed_pkgs_file = os.path.join(self.d.getVar('WORKDIR', True), |
729 | "installed_pkgs.txt") | 729 | "installed_pkgs.txt") |
730 | with open(installed_pkgs_file, "w+") as installed_pkgs: | 730 | with open(installed_pkgs_file, "w+") as installed_pkgs: |
731 | installed_pkgs.write(self.list_installed("arch")) | 731 | pkgs = self.list_installed() |
732 | output = oe.utils.format_pkg_list(pkgs, "arch") | ||
733 | installed_pkgs.write(output) | ||
732 | 734 | ||
733 | if globs is None: | 735 | if globs is None: |
734 | globs = self.d.getVar('IMAGE_INSTALL_COMPLEMENTARY', True) | 736 | globs = self.d.getVar('IMAGE_INSTALL_COMPLEMENTARY', True) |
@@ -1432,8 +1434,8 @@ class RpmPM(PackageManager): | |||
1432 | self.image_rpmlib, | 1434 | self.image_rpmlib, |
1433 | symlinks=True) | 1435 | symlinks=True) |
1434 | 1436 | ||
1435 | def list_installed(self, format=None): | 1437 | def list_installed(self): |
1436 | return self.pkgs_list.list(format) | 1438 | return self.pkgs_list.list_pkgs() |
1437 | 1439 | ||
1438 | ''' | 1440 | ''' |
1439 | If incremental install, we need to determine what we've got, | 1441 | If incremental install, we need to determine what we've got, |
@@ -1797,8 +1799,8 @@ class OpkgPM(PackageManager): | |||
1797 | # create the directory back, it's needed by PM lock | 1799 | # create the directory back, it's needed by PM lock |
1798 | bb.utils.mkdirhier(self.opkg_dir) | 1800 | bb.utils.mkdirhier(self.opkg_dir) |
1799 | 1801 | ||
1800 | def list_installed(self, format=None): | 1802 | def list_installed(self): |
1801 | return OpkgPkgsList(self.d, self.target_rootfs, self.config_file).list(format) | 1803 | return OpkgPkgsList(self.d, self.target_rootfs, self.config_file).list_pkgs() |
1802 | 1804 | ||
1803 | def handle_bad_recommendations(self): | 1805 | def handle_bad_recommendations(self): |
1804 | bad_recommendations = self.d.getVar("BAD_RECOMMENDATIONS", True) or "" | 1806 | bad_recommendations = self.d.getVar("BAD_RECOMMENDATIONS", True) or "" |
@@ -2186,8 +2188,8 @@ class DpkgPM(PackageManager): | |||
2186 | bb.fatal("Cannot fix broken dependencies. Command '%s' " | 2188 | bb.fatal("Cannot fix broken dependencies. Command '%s' " |
2187 | "returned %d:\n%s" % (cmd, e.returncode, e.output)) | 2189 | "returned %d:\n%s" % (cmd, e.returncode, e.output)) |
2188 | 2190 | ||
2189 | def list_installed(self, format=None): | 2191 | def list_installed(self): |
2190 | return DpkgPkgsList(self.d, self.target_rootfs).list() | 2192 | return DpkgPkgsList(self.d, self.target_rootfs).list_pkgs() |
2191 | 2193 | ||
2192 | 2194 | ||
2193 | def generate_index_files(d): | 2195 | def generate_index_files(d): |