]> 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>
Fri, 29 Apr 2016 06:53:57 +0000 (07:53 +0100)
commitb251f8b212f16b16b88183cc9a959d8cfa24fe3c
tree8d5fa10c29534781ae22e3aa57a63c9e77447108
parentac5d4d42a5903cbcafd7247c282df1cb98f79f08
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package.bbclass