summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2016-09-15 17:47:39 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-20 15:11:08 +0100
commit0a04692279f83637c0049cb1f91ac684f3fccf1f (patch)
tree8aa48a9b667766afc195d8b91abcc92be8281c99 /meta
parentf1e3dc029f0be096cb272846ef0ded1a485308e5 (diff)
downloadpoky-0a04692279f83637c0049cb1f91ac684f3fccf1f.tar.gz
package_manager.py: Change diagnostic messages per IRC
Based on a discussion with IRC user: Ulfalizer It was suggested that removing the diagnostic list, and replacing it with a simple hint to what might be causing the problem was a better solution. (From OE-Core rev: ca78313665b23bd7fee85f034acfe1eb1009bd65) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py20
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)