diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-06-09 16:03:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-26 09:27:31 +0100 |
commit | c362e61ee2cc97b393f7002c4592787d6573080c (patch) | |
tree | 4b2108210cba66b65df4ebdd4a558b3e0b0c6368 /bitbake/lib/toaster/orm/models.py | |
parent | b98a2fcab600d74a01b76fe3f9e5249642f2c32b (diff) | |
download | poky-c362e61ee2cc97b393f7002c4592787d6573080c.tar.gz |
bitbake: toaster: remove MANAGED references
We conflate the managed and analysis modes by
deleting alternative code paths, favouring the MANAGED mode,
always considering the MANAGED variable True.
(Bitbake rev: 0ac02d3775106b485e29496b62f31e91fd3f9387)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 88194504c5..422f2bfd93 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -288,9 +288,7 @@ class BuildArtifact(models.Model): | |||
288 | 288 | ||
289 | 289 | ||
290 | def is_available(self): | 290 | def is_available(self): |
291 | if settings.MANAGED and build.project is not None: | 291 | return build.buildrequest.environment.has_artifact(file_path) |
292 | return build.buildrequest.environment.has_artifact(file_path) | ||
293 | return False | ||
294 | 292 | ||
295 | class ProjectTarget(models.Model): | 293 | class ProjectTarget(models.Model): |
296 | project = models.ForeignKey(Project) | 294 | project = models.ForeignKey(Project) |