Skip to contentSkip to conversation

lib/bb/main.py: Fix use of BBPOSTCONF and BBPRECONF

PATCH In review [email protected] 2 participants 2 messages Jun 7, 2016 – Jun 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/bb/main.py: Fix use of BBPOSTCONF and BBPRECONF

From: Mariano Lopez <[email protected]>

The functionality of BBPOSTCONF and BBPRECONF was added in commit 21b314d4d1e5b8fbeb4cc57006f0a110f0b3aa8f but there was a typo in the variable name that raises an exception in bitbake.

[YOCTO #9235]

---
 bitbake/lib/bb/main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/main.py +2 -2
index b296ef8..283f29b 100755
@@ -281,10 +281,10 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
 
         # use configuration files from environment variables
         if "BBPRECONF" in os.environ:
-            option.prefile.append(os.environ["BBPRECONF"])
+            options.prefile.append(os.environ["BBPRECONF"])
 
         if "BBPOSTCONF" in os.environ:
-            option.postfile.append(os.environ["BBPOSTCONF"])
+            options.postfile.append(os.environ["BBPOSTCONF"])
 
         # fill in proper log name if not supplied
         if options.writeeventlog is not None and len(options.writeeventlog) == 0:
Signature · 1 line
2.6.6
#1 lore raw

Looking good!

Quoted 36 lines · On Tue, 2016-06-07 at 12:27 +0000, [email protected] wrote:

From: Mariano Lopez <[email protected]>

The functionality of BBPOSTCONF and BBPRECONF was added in commit 21b314d4d1e5b8fbeb4cc57006f0a110f0b3aa8f but there was a typo in the variable name that raises an exception in bitbake.

[YOCTO #9235]

---
 bitbake/lib/bb/main.py | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/main.py +0 -0
index b296ef8..283f29b 100755
@@ -281,10 +281,10 @@ class

BitBakeConfigParameters(cookerdata.ConfigParameters):

         # use configuration files from environment variables
         if "BBPRECONF" in os.environ:
-            option.prefile.append(os.environ["BBPRECONF"])
+            options.prefile.append(os.environ["BBPRECONF"])
 
         if "BBPOSTCONF" in os.environ:
-            option.postfile.append(os.environ["BBPOSTCONF"])
+            options.postfile.append(os.environ["BBPOSTCONF"])
 
         # fill in proper log name if not supplied
         if options.writeeventlog is not None and
len(options.writeeventlog) == 0:
-- 
2.6.6