Skip to contentSkip to conversation

debian: Fix superfluous setting for RPROVIDES

PATCH New Richard Purdie 1 participant 1 message Feb 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debian: Fix superfluous setting for RPROVIDES

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.

meta/classes/debian.bbclass +1 -1
index 1b6979a..be7cacc 100644
@@ -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: