os-release: fix do_compile() when RPM signing is enabled
PATCH v2 1/1 os-release: fix do_compile() when RPM signing is enabled
do_compile() task failed when RPM signing was in use.
Signed-off-by Markus Lehtonen <[email protected]>
--- meta/recipes-core/os-release/os-release.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/os-release/os-release.bb +2 -2
@@ -32,8 +32,8 @@ python do_compile () { f.write('{0}={1}\n'.format(field, value)) if d.getVar('RPM_SIGN_PACKAGES', True) == '1': rpm_gpg_pubkey = d.getVar('RPM_GPG_PUBKEY', True) - os.mkdir('${B}/rpm-gpg') - distro_version = self.d.getVar('DISTRO_VERSION', True) or "oe.0" + bb.utils.mkdirhier('${B}/rpm-gpg') + distro_version = d.getVar('DISTRO_VERSION', True) or "oe.0" shutil.copy2(rpm_gpg_pubkey, d.expand('${B}/rpm-gpg/RPM-GPG-KEY-%s' % distro_version)) } do_compile[vardeps] += "${OS_RELEASE_FIELDS}"
Signature · 1 line
2.1.4