]> code.ossystems Code Review - openembedded-core.git/commitdiff
update-alternatives: when warning about alt_link==alt_target, say what PN
authorRoss Burton <ross.burton@intel.com>
Thu, 21 Jan 2016 20:37:58 +0000 (20:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Jan 2016 23:42:45 +0000 (23:42 +0000)
A warning that doesn't say what the PN is doesn't really help.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/update-alternatives.bbclass

index 825cc880432ca0185170ca5afc679130b86f1fc6..70a818572c1c58178e0c888430047f314675d6c2 100644 (file)
@@ -252,7 +252,7 @@ python package_do_filedeps_append () {
             alt_target   = alt_target or d.getVar('ALTERNATIVE_TARGET_%s' % pkg, True) or d.getVar('ALTERNATIVE_TARGET', True) or alt_link
 
             if alt_link == alt_target:
-                bb.warn('alt_link == alt_target: %s == %s' % (alt_link, alt_target))
+                bb.warn('%s: alt_link == alt_target: %s == %s' % (pn, alt_link, alt_target))
                 alt_target = '%s.%s' % (alt_target, pn)
 
             if not os.path.lexists('%s/%s/%s' % (pkgdest, pkg, alt_target)):