diff options
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index a1119168dd..8e40f0aca2 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -622,6 +622,7 @@ class Target(models.Model): | |||
622 | is_image = models.BooleanField(default = False) | 622 | is_image = models.BooleanField(default = False) |
623 | image_size = models.IntegerField(default=0) | 623 | image_size = models.IntegerField(default=0) |
624 | license_manifest_path = models.CharField(max_length=500, null=True) | 624 | license_manifest_path = models.CharField(max_length=500, null=True) |
625 | package_manifest_path = models.CharField(max_length=500, null=True) | ||
625 | 626 | ||
626 | def package_count(self): | 627 | def package_count(self): |
627 | return Target_Installed_Package.objects.filter(target_id__exact=self.id).count() | 628 | return Target_Installed_Package.objects.filter(target_id__exact=self.id).count() |
@@ -729,9 +730,9 @@ class Target(models.Model): | |||
729 | Target_Image_File object for an ext4 image being associated with a | 730 | Target_Image_File object for an ext4 image being associated with a |
730 | target for a project which didn't produce an ext4 image (for example). | 731 | target for a project which didn't produce an ext4 image (for example). |
731 | 732 | ||
732 | Also sets the license_manifest_path of this target to the same path | 733 | Also sets the license_manifest_path and package_manifest_path |
733 | as that of target being cloned from, as the license manifest path is | 734 | of this target to the same path as that of target being cloned from, as |
734 | also a build artifact but is treated differently. | 735 | the manifests are also build artifacts but are treated differently. |
735 | """ | 736 | """ |
736 | 737 | ||
737 | image_fstypes = self.build.get_image_fstypes() | 738 | image_fstypes = self.build.get_image_fstypes() |
@@ -754,6 +755,7 @@ class Target(models.Model): | |||
754 | kernel_file.save() | 755 | kernel_file.save() |
755 | 756 | ||
756 | self.license_manifest_path = target.license_manifest_path | 757 | self.license_manifest_path = target.license_manifest_path |
758 | self.package_manifest_path = target.package_manifest_path | ||
757 | self.save() | 759 | self.save() |
758 | 760 | ||
759 | def clone_sdk_artifacts_from(self, target): | 761 | def clone_sdk_artifacts_from(self, target): |