crate.py: use BPN instead of PN

If we don't use BPN then native packages will not extract correct since
PN will be something-native and we won't extract the something crate to
${S}.
This commit is contained in:
Doug Goldstein
2016-12-04 16:33:47 -06:00
parent 6083dff0b6
commit 487e670b9b

View File

@@ -180,7 +180,7 @@ class Crate(Wget):
save_cwd = os.getcwd()
os.chdir(rootdir)
pn = d.getVar('PN', True)
pn = d.getVar('BPN', True)
if pn == ud.parm.get('name'):
cmd = "tar -xz --no-same-owner -f %s" % thefile
else: