diff --git a/lib/oelite/baker.py b/lib/oelite/baker.py index b1a89fe9..6d4656d7 100644 --- a/lib/oelite/baker.py +++ b/lib/oelite/baker.py @@ -55,6 +55,10 @@ def add_bake_parser_options(parser): action="store_true", default=False, help="assume 'y' response to trivial questions") + parser.add_option("--dryrun", + action="store_true", default=False, + help="do recipe parsing, dependency resolving etc., but do not actually bake anything") + parser.add_option("--rmwork", action="store_true", default=None, help="clean workdir for all recipes being built") @@ -546,6 +550,10 @@ def bake(self): text.append("%s:%s(%d)"%(recipe[1], recipe[2], recipe[4])) print oelite.util.format_textblock(" ".join(text)) + if self.options.dryrun: + print "Dryrun, not baking" + return 0 + self.cookbook.compute_recipe_build_priorities() if os.isatty(sys.stdin.fileno()) and not self.options.yes: