diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package_manager.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 238dddca79..434b898d3d 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -839,11 +839,13 @@ class RpmPM(PackageManager): | |||
839 | new_pkg = self._search_pkg_name_in_feeds(subst, feed_archs) | 839 | new_pkg = self._search_pkg_name_in_feeds(subst, feed_archs) |
840 | if not new_pkg: | 840 | if not new_pkg: |
841 | # Failed to translate, package not found! | 841 | # Failed to translate, package not found! |
842 | err_msg = '%s not found in the %s feeds (%s).' % \ | 842 | err_msg = '%s not found in the %s feeds (%s) in %s.' % \ |
843 | (pkg, mlib, " ".join(feed_archs)) | 843 | (pkg, mlib, " ".join(feed_archs), self.d.getVar('DEPLOY_DIR_RPM', True)) |
844 | if not attempt_only: | 844 | if not attempt_only: |
845 | bb.error("List of available packages: " + " ".join(self.fullpkglist)) | 845 | bb.error(err_msg) |
846 | bb.fatal(err_msg) | 846 | bb.fatal("This is often caused by an empty package declared " \ |
847 | "in a recipe's PACKAGES variable. (Empty packages are " \ | ||
848 | "not constructed unless ALLOW_EMPTY_<pkg> = '1' is used.)") | ||
847 | bb.warn(err_msg) | 849 | bb.warn(err_msg) |
848 | else: | 850 | else: |
849 | new_pkgs.append(new_pkg) | 851 | new_pkgs.append(new_pkg) |
@@ -856,11 +858,13 @@ class RpmPM(PackageManager): | |||
856 | default_archs = self.ml_prefix_list['default'] | 858 | default_archs = self.ml_prefix_list['default'] |
857 | new_pkg = self._search_pkg_name_in_feeds(pkg, default_archs) | 859 | new_pkg = self._search_pkg_name_in_feeds(pkg, default_archs) |
858 | if not new_pkg: | 860 | if not new_pkg: |
859 | err_msg = '%s not found in the feeds (%s).' % \ | 861 | err_msg = '%s not found in the feeds (%s) in %s.' % \ |
860 | (pkg, ' '.join(default_archs)) | 862 | (pkg, " ".join(default_archs), self.d.getVar('DEPLOY_DIR_RPM', True)) |
861 | if not attempt_only: | 863 | if not attempt_only: |
862 | bb.error("List of available packages: " + " ".join(self.fullpkglist)) | 864 | bb.error(err_msg) |
863 | bb.fatal(err_msg) | 865 | bb.fatal("This is often caused by an empty package declared " \ |
866 | "in a recipe's PACKAGES variable. (Empty packages are " \ | ||
867 | "not constructed unless ALLOW_EMPTY_<pkg> = '1' is used.)") | ||
864 | bb.warn(err_msg) | 868 | bb.warn(err_msg) |
865 | else: | 869 | else: |
866 | new_pkgs.append(new_pkg) | 870 | new_pkgs.append(new_pkg) |