bitbake: bitbake-diffigs: Don't pull in tinfoil unless we really need/plan to use it
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Jan 2013 12:54:49 +0000 (12:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Jan 2013 12:58:35 +0000 (12:58 +0000)
This means we can run in parallel with other bitbake processed we're not in
task mode.

(Bitbake rev: 20222f2f16130e91eed5e68286188ee0e8f8f3bf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/bin/bitbake-diffsigs

index 62f6827..3ce70da 100755 (executable)
@@ -85,8 +85,8 @@ options, args = parser.parse_args(sys.argv)
 if len(args) == 1:
     parser.print_help()
 else:
-    tinfoil = bb.tinfoil.Tinfoil()
     if options.taskmode:
+        tinfoil = bb.tinfoil.Tinfoil()
         if len(args) < 3:
             logger.error("Please specify a recipe and task name")
             sys.exit(1)