[oe-commits] [bitbake] 02/04: toaster: set clone progress default to off

git at git.openembedded.org git at git.openembedded.org
Fri Jul 21 10:13:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

commit d25a3088150b2a277242027c12becdeb88c45517
Author: David Reyna <David.Reyna at windriver.com>
AuthorDate: Tue Jul 11 14:56:09 2017 -0700

    toaster: set clone progress default to off
    
    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]
    
    Signed-off-by: David Reyna <David.Reyna at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/orm/migrations/0016_clone_progress.py | 4 ++--
 lib/toaster/orm/models.py                         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/toaster/orm/migrations/0016_clone_progress.py b/lib/toaster/orm/migrations/0016_clone_progress.py
index 852b878..cd4023b 100644
--- a/lib/toaster/orm/migrations/0016_clone_progress.py
+++ b/lib/toaster/orm/migrations/0016_clone_progress.py
@@ -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)
         ),
     ]
 
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index e9182c5..05cc5a8 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -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):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list