Bug 6642

Summary: Add a package QA check for ${D} in postinstall script functions
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Alejandro Hernandez <alejandro.hernandez>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: 1.7   
Target Milestone: 1.8   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Paul Eggleton 2014-08-21 14:28:04 UTC
It's a common mistake to use ${D} rather than $D in postinstall scripts, and it would be easy for us to detect, so we really ought to have a package QA check for it. We'd just need to look in the unexpanded value of pkg_postinst, pkg_preinst, pkg_postrm and pkg_prerm and trigger a QA issue if ${D} was in the value (suggesting to the user that $D should be used instead).
Comment 1 Paul Eggleton 2014-11-19 14:56:58 UTC
See also the similar (but not directly related) bug 6982.