]> code.ossystems Code Review - openembedded-core.git/commitdiff
debian: Fix superfluous setting for RPROVIDES
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Feb 2016 11:35:42 +0000 (11:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 13 Feb 2016 08:27:17 +0000 (08:27 +0000)
PKG_ can be set to something like ${MLPREFIX}<name> 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 <richard.purdie@linuxfoundation.org>
meta/classes/debian.bbclass

index 1b6979a285d0b5511d517d95f3ad8849a27755ca..be7cacca98a39c4e28b9e7c3ed89b3b7350d266d 100644 (file)
@@ -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: