summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 548d0a7b1..510c6479f 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -130,6 +130,8 @@ class BBCooker:
if 'world' in self.configuration.pkgs_to_build:
buildlog.error("'world' is not a valid target for --environment.")
+ if 'universe' in self.configuration.pkgs_to_build:
+ buildlog.error("'universe' is not a valid target for --environment.")
elif len(self.configuration.pkgs_to_build) > 1:
buildlog.error("Only one target can be used with the --environment option.")
elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0:
@@ -910,6 +912,12 @@ class BBCooker:
for t in self.status.world_target:
pkgs_to_build.append(t)
+ if 'universe' in pkgs_to_build:
+ parselog.debug(1, "collating packages for \"universe\"")
+ pkgs_to_build.remove('universe')
+ for t in self.status.universe_target:
+ pkgs_to_build.append(t)
+
return pkgs_to_build
def get_bbfiles( self, path = os.getcwd() ):