Skip to contentSkip to conversation

sstate: when warnings about sysroot overwrites, say what the recipe was

PATCH Applied Ross Burton 2 participants 2 messages Oct 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sstate: when warnings about sysroot overwrites, say what the recipe was

---
 meta/classes/sstate.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/sstate.bbclass +1 -1
index 3fcaa65..b20b19c 100644
@@ -165,7 +165,7 @@ def sstate_install(ss, d):
             if realmatch:
                 match.append(f)
     if match:
-        bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n   %s" % "\n   ".join(match))
+        bb.warn("The recipe %s is trying to install files into a shared area when those files already exist. Those files are:\n   %s" % (d.getVar("PN", True), "\n   ".join(match)))
 
     # Write out the manifest
     f = open(manifest, "w")
Signature · 1 line
1.7.10
Applied
#1 lore raw
Quoted 11 lines · Ross Burton
---
  meta/classes/sstate.bbclass |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/sstate.bbclass +0 -0
index 3fcaa65..b20b19c 100644

meta/classes/sstate.bbclass def sstate_install(ss, d): · line 171

Quoted 8 lines
meta/classes/sstate.bbclass +1 -1
@@ -165,7 +165,7 @@ def sstate_install(ss, d):
              if realmatch:
                  match.append(f)
      if match:
-        bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n   %s" % "\n   ".join(match))
+        bb.warn("The recipe %s is trying to install files into a shared area when those files already exist. Those files are:\n   %s" % (d.getVar("PN", True), "\n   ".join(match)))
 
      # Write out the manifest
      f = open(manifest, "w")

Merged into OE-Core

Thanks
Sau!