summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index a17de5de73..7ae5e045df 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -766,7 +766,9 @@ class RpmPM(PackageManager):
766 rpmrcconfdir = "%s/%s" %(self.target_rootfs, "etc/") 766 rpmrcconfdir = "%s/%s" %(self.target_rootfs, "etc/")
767 bb.utils.mkdirhier(platformconfdir) 767 bb.utils.mkdirhier(platformconfdir)
768 open(platformconfdir + "platform", 'w').write("%s-pc-linux" % self.primary_arch) 768 open(platformconfdir + "platform", 'w').write("%s-pc-linux" % self.primary_arch)
769 open(rpmrcconfdir + "rpmrc", 'w').write("arch_compat: %s: %s\n" % (self.primary_arch, self.archs if len(self.archs) > 0 else self.primary_arch)) 769 with open(rpmrcconfdir + "rpmrc", 'w') as f:
770 f.write("arch_compat: %s: %s\n" % (self.primary_arch, self.archs if len(self.archs) > 0 else self.primary_arch))
771 f.write("buildarch_compat: %s: noarch\n" % self.primary_arch)
770 772
771 open(platformconfdir + "macros", 'w').write("%_transaction_color 7\n") 773 open(platformconfdir + "macros", 'w').write("%_transaction_color 7\n")
772 if self.d.getVar('RPM_PREFER_ELF_ARCH'): 774 if self.d.getVar('RPM_PREFER_ELF_ARCH'):