diff mbox series

debian.bbclass: add a note when a package is renamed

Message ID 20180105130622.5357-1-ross.burton@intel.com
State Accepted
Commit 2c27df943035b4df7c5d0be1ab8d0f4f3a31f4d2
Headers show
Series debian.bbclass: add a note when a package is renamed | expand

Commit Message

Ross Burton Jan. 5, 2018, 1:06 p.m. UTC
To make it easier to debug problems with renaming caused by debian.bbclass,
explicitly log when packages are renamed.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/classes/debian.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 8124558b819..5cdbf360dcb 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -120,6 +120,7 @@  python debian_package_name_hook () {
                         if not newpkg.find(mlpre) == 0:
                             newpkg = mlpre + newpkg
                     if newpkg != pkg:
+                        bb.note("debian: renaming %s to %s" % (pkg, newpkg))
                         d.setVar('PKG_' + pkg, newpkg)
                         add_rprovides(pkg, d)
         else:
@@ -138,4 +139,3 @@  python debian_package_name_hook () {
 EXPORT_FUNCTIONS package_name_hook
 
 DEBIAN_NAMES = "1"
-