Skip to contentSkip to conversation

toaster: set clone progress default to off

PATCH New David Reyna 1 participant 1 message Jul 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: set clone progress default to off

From: David Reyna <[email protected]>

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/lib/toaster/orm/migrations/0016_clone_progress.py | 4 ++--
 bitbake/lib/toaster/orm/models.py                         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
bitbake/lib/toaster/orm/migrations/0016_clone_progress.py +2 -2
index 852b878..cd4023b 100644
@@ -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)
         ),
     ]
 
bitbake/lib/toaster/orm/models.py +2 -2
index 630e4a0..70e7042 100644
@@ -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):
Signature · 1 line
1.9.1