]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: toaster: set clone progress default to off
authorDavid Reyna <David.Reyna@windriver.com>
Tue, 11 Jul 2017 21:56:09 +0000 (14:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 08:26:18 +0000 (09:26 +0100)
Set the clone progress to be off by default for the benefit of
command line projects and 'Local Yocto' builds. For Toaster managed
projects that do use the clone feature the clone progress status
is already explicitly set by the existing code and thus displayed.

[YOCTO #11744]

(Bitbake rev: d25a3088150b2a277242027c12becdeb88c45517)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/orm/migrations/0016_clone_progress.py
bitbake/lib/toaster/orm/models.py

index 852b8785fe8eb704bb9d9433ef7f279edb11136b..cd4023b6f5c7788b3667351215ca2d6321f4d550 100644 (file)
@@ -13,12 +13,12 @@ class Migration(migrations.Migration):
         migrations.AddField(
             model_name='build',
             name='repos_cloned',
-            field=models.IntegerField(default=0),
+            field=models.IntegerField(default=1),
         ),
         migrations.AddField(
             model_name='build',
             name='repos_to_clone',
-            field=models.IntegerField(default=1),
+            field=models.IntegerField(default=1), # (default off)
         ),
     ]
 
index e9182c56e7495b2a1d9c712130c58a501cc977f5..05cc5a83b195c7e76366aea751dc032ffd0a24e1 100644 (file)
@@ -456,8 +456,8 @@ class Build(models.Model):
     # number of repos to clone for this build
     repos_to_clone = models.IntegerField(default=1)
 
-    # number of repos cloned so far for this build
-    repos_cloned = models.IntegerField(default=0)
+    # number of repos cloned so far for this build (default off)
+    repos_cloned = models.IntegerField(default=1)
 
     @staticmethod
     def get_recent(project=None):