Build packages and Target packages tables have redundant information, since they collect data about the same packages. All packages information must be stored in a single table. All dependency information will be collected in several cases - at build time, and once per each target. The dependency information will be stored in a single table. Package file information will be stored in a single table. The pkgdata collection currently runs at package build time. This must be extended to run also at _setscene time and at target creation time, if not available before hand. This will bring in more data about packages that are being used, helping with data completeness bug 5269.
review on poky-contrib:toaster/master edb12586c27ccddb054737ee6e081f663e2c60da
Merged in toaster/master
Verified.