]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: eliminate duplicate querysets
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 8 Jun 2015 11:26:12 +0000 (12:26 +0100)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Wed, 10 Jun 2015 14:31:12 +0000 (15:31 +0100)
commitfb5eb1d7759222573565936a964d602c148df139
tree41e23009dd68e677689dde430a6ab9c3ecdfb5d2
parentd3edea773000a663f5883e04f477d853bff64cf6
toaster: eliminate duplicate querysets

The Layer_Version.get_equivalents_wpriority performs the same
function as Project.compatible_layerversions, but in memory and
with worse performance.

Replace the code in get_equivalents_wpriority with a call to
the project compatible_layerversions, which also returns a queryset
instead of a list (can be used to further enhance queries)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
lib/toaster/orm/models.py