Skip to contentSkip to conversation

os-release: fix do_compile() when RPM signing is enabled

PATCH New Markus Lehtonen 1 participant 1 message Oct 5, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 os-release: fix do_compile() when RPM signing is enabled

do_compile() task failed when RPM signing was in use.

---
 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
index cc431d2..db82760 100644
@@ -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