diff options
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index e9285d6438..7f7b1f37e9 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -787,6 +787,11 @@ class Package_DependencyManager(models.Manager): | |||
787 | """ | 787 | """ |
788 | return self.all().aggregate(Sum('depends_on__size')) | 788 | return self.all().aggregate(Sum('depends_on__size')) |
789 | 789 | ||
790 | def all_depends(self): | ||
791 | """ Returns just the depends packages and not any other dep_type """ | ||
792 | return self.filter(Q(dep_type=Package_Dependency.TYPE_RDEPENDS) | | ||
793 | Q(dep_type=Package_Dependency.TYPE_TRDEPENDS)) | ||
794 | |||
790 | class Package_Dependency(models.Model): | 795 | class Package_Dependency(models.Model): |
791 | TYPE_RDEPENDS = 0 | 796 | TYPE_RDEPENDS = 0 |
792 | TYPE_TRDEPENDS = 1 | 797 | TYPE_TRDEPENDS = 1 |