From 056339c32a9ff0735d39cae216663147cdbb275c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 12 Feb 2016 11:35:42 +0000 Subject: debian: Fix superfluous setting for RPROVIDES PKG_ can be set to something like ${MLPREFIX} and the lack of expansion here means the case where MLPREFIX is empty leads to a bogus RPROVIDES. Use expansion of the variable to avoid this. Signed-off-by: Richard Purdie --- meta/classes/debian.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass index 1b6979a285..be7cacca98 100644 --- a/meta/classes/debian.bbclass +++ b/meta/classes/debian.bbclass @@ -53,7 +53,7 @@ python debian_package_name_hook () { return (s[stat.ST_MODE] & stat.S_IEXEC) def add_rprovides(pkg, d): - newpkg = d.getVar('PKG_' + pkg, False) + newpkg = d.getVar('PKG_' + pkg, True) if newpkg and newpkg != pkg: provs = (d.getVar('RPROVIDES_' + pkg, True) or "").split() if pkg not in provs: -- cgit 1.2.3-korg