]> code.ossystems Code Review - openembedded-core.git/commit
package: ensure do_split_packages doesn't return duplicates
authorRoss Burton <ross.burton@intel.com>
Thu, 7 Apr 2016 08:54:56 +0000 (09:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jun 2016 18:33:21 +0000 (19:33 +0100)
commit1aff01ddea6db059322939af0284dac370901546
treeb2c2ec128ddd9865501e3c00ce3340d847516762
parent4b85501f4713ec1b7f54f2d3728f63cda32b5164
package: ensure do_split_packages doesn't return duplicates

do_split_package() constructs a list of packages that were created as it
iterates through the files, so if multiple files go into the same package then
the package will be repeated in the output.

Solve this by using a set() to store the created packages so that duplicates are
ignored.

(From OE-Core rev: b251f8b212f16b16b88183cc9a959d8cfa24fe3c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster@mvista.com>
meta/classes/package.bbclass