summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-07-11 14:56:09 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 09:26:18 +0100
commita25ece2d77f28e71a71913ea25391bcbc8fa37e0 (patch)
tree23b2d3039e463262337fc67e8996f32176e9540c /bitbake
parent36568b9e1e079f55a6d2e7bad0fd3ca27c90bb53 (diff)
downloadpoky-a25ece2d77f28e71a71913ea25391bcbc8fa37e0.tar.gz
bitbake: 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] (Bitbake rev: d25a3088150b2a277242027c12becdeb88c45517) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/orm/migrations/0016_clone_progress.py4
-rw-r--r--bitbake/lib/toaster/orm/models.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/orm/migrations/0016_clone_progress.py b/bitbake/lib/toaster/orm/migrations/0016_clone_progress.py
index 852b8785fe..cd4023b6f5 100644
--- a/bitbake/lib/toaster/orm/migrations/0016_clone_progress.py
+++ b/bitbake/lib/toaster/orm/migrations/0016_clone_progress.py
@@ -13,12 +13,12 @@ class Migration(migrations.Migration):
13 migrations.AddField( 13 migrations.AddField(
14 model_name='build', 14 model_name='build',
15 name='repos_cloned', 15 name='repos_cloned',
16 field=models.IntegerField(default=0), 16 field=models.IntegerField(default=1),
17 ), 17 ),
18 migrations.AddField( 18 migrations.AddField(
19 model_name='build', 19 model_name='build',
20 name='repos_to_clone', 20 name='repos_to_clone',
21 field=models.IntegerField(default=1), 21 field=models.IntegerField(default=1), # (default off)
22 ), 22 ),
23 ] 23 ]
24 24
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index e9182c56e7..05cc5a83b1 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -456,8 +456,8 @@ class Build(models.Model):
456 # number of repos to clone for this build 456 # number of repos to clone for this build
457 repos_to_clone = models.IntegerField(default=1) 457 repos_to_clone = models.IntegerField(default=1)
458 458
459 # number of repos cloned so far for this build 459 # number of repos cloned so far for this build (default off)
460 repos_cloned = models.IntegerField(default=0) 460 repos_cloned = models.IntegerField(default=1)
461 461
462 @staticmethod 462 @staticmethod
463 def get_recent(project=None): 463 def get_recent(project=None):