summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 60127d2ef4..4647116eed 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -777,10 +777,16 @@ python do_package_rpm () {
777 cmd = cmd + " --define 'debug_package %{nil}'" 777 cmd = cmd + " --define 'debug_package %{nil}'"
778 cmd = cmd + " -bb " + outspecfile 778 cmd = cmd + " -bb " + outspecfile
779 779
780 # Build the spec file! 780 # Take a shared lock, we can write multiple packages at the same time...
781 # but we need to stop the rootfs/solver from running while we do...
782 lf = bb.utils.lockfile(bb.data.expand("${DEPLOY_DIR_RPM}/rpm.lock", d), True)
783
784 # Build the rpm package!
781 bb.data.setVar('BUILDSPEC', cmd + "\n", d) 785 bb.data.setVar('BUILDSPEC', cmd + "\n", d)
782 bb.data.setVarFlag('BUILDSPEC', 'func', '1', d) 786 bb.data.setVarFlag('BUILDSPEC', 'func', '1', d)
783 bb.build.exec_func('BUILDSPEC', d) 787 bb.build.exec_func('BUILDSPEC', d)
788
789 bb.utils.unlockfile(lf)
784} 790}
785 791
786python () { 792python () {