summaryrefslogtreecommitdiff
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2016-09-15 17:47:38 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-20 15:10:36 +0100
commitd643fb2a9cb5bd0d8b0105e9d44b989a49ffa963 (patch)
tree8bcfcc34b979e7523f962eb115fd5cbba4073eeb /meta/lib/oe
parentee4697350a553a36ca17b9376911e56eee43a465 (diff)
downloadopenembedded-core-d643fb2a9cb5bd0d8b0105e9d44b989a49ffa963.tar.gz
openembedded-core-d643fb2a9cb5bd0d8b0105e9d44b989a49ffa963.tar.bz2
openembedded-core-d643fb2a9cb5bd0d8b0105e9d44b989a49ffa963.zip
package_manager.py: Adjust error message order
Move the debug before the error (as it can take many pages.) This makes it much easier for the user to see the actual error message as it is still on the screen. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 30e1de99b9..238dddca79 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -839,10 +839,10 @@ class RpmPM(PackageManager):
new_pkg = self._search_pkg_name_in_feeds(subst, feed_archs)
if not new_pkg:
# Failed to translate, package not found!
- err_msg = '%s not found in the %s feeds (%s).\n' % \
+ err_msg = '%s not found in the %s feeds (%s).' % \
(pkg, mlib, " ".join(feed_archs))
if not attempt_only:
- err_msg += " ".join(self.fullpkglist)
+ bb.error("List of available packages: " + " ".join(self.fullpkglist))
bb.fatal(err_msg)
bb.warn(err_msg)
else:
@@ -856,10 +856,10 @@ class RpmPM(PackageManager):
default_archs = self.ml_prefix_list['default']
new_pkg = self._search_pkg_name_in_feeds(pkg, default_archs)
if not new_pkg:
- err_msg = '%s not found in the base feeds (%s).\n' % \
+ err_msg = '%s not found in the feeds (%s).' % \
(pkg, ' '.join(default_archs))
if not attempt_only:
- err_msg += " ".join(self.fullpkglist)
+ bb.error("List of available packages: " + " ".join(self.fullpkglist))
bb.fatal(err_msg)
bb.warn(err_msg)
else: