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. (From OE-Core rev: 056339c32a9ff0735d39cae216663147cdbb275c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
2eba066ccb
commit
7c3d4c033e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue