Patchwork [bitbake-devel] Richard Purdie : cooker.py: Convert a bb.data. expand refernce to the updated syntax

login
register
mail settings
Submitter git@git.openembedded.org
Date Jan. 5, 2012, 1:11 p.m.
Message ID <20120105131152.D15BB10331@opal>
Download mbox | patch
Permalink /patch/18437/
State Not Applicable
Headers show

Comments

git@git.openembedded.org - Jan. 5, 2012, 1:11 p.m.
Module: bitbake.git
Branch: master
Commit: 4483dc4bc4711cd8e144078090727348beb24879
URL:    http://git.openembedded.org/?p=bitbake.git&a=commit;h=4483dc4bc4711cd8e144078090727348beb24879

Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Thu Jan  5 12:57:12 2012 +0000

cooker.py: Convert a bb.data.expand refernce to the updated syntax

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

---

 lib/bb/cooker.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index cbe0d71..27abca0 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -137,7 +137,7 @@  class BBCooker:
 
         # Take a lock so only one copy of bitbake can run against a given build
         # directory at a time
-        lockfile = bb.data.expand("${TOPDIR}/bitbake.lock", self.configuration.data)
+        lockfile = self.configuration.data.expand("${TOPDIR}/bitbake.lock")
         self.lock = bb.utils.lockfile(lockfile, False, False)
         if not self.lock:
             bb.fatal("Only one copy of bitbake should be run against a build directory")