Now that loops are possible, remove short circuit logic as it caused
bundles to be skipped in certain cases.
Signed-off-by: William Douglas <william.douglas@intel.com>
Keep a set of any bundle we've inspected before as a different set
compared to the current bundles being inspected as part of the depth
first chain.
This fixes a major performance problem with re-evaluating bundles that
have already been seen before while still allowing cycles to be
spotted and accurately reported in the bundle configurations.
Signed-off-by: William Douglas <william.r.douglas@gmail.com>
This code will detect content loops and also modifies how the content
sets are updated. In addition also-add content is skipped as it is
intentionally not required content of a bundle.
The packages file should be able to contain comments in the same line
as a package name name (everything after the comment character '#' is
to be ignored). Support this with updated logic to find pundle names.
Catch recursion errors and report them, report other failures and set
the returncode to 1 on failures.
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This release adds os-core implicit-include resolution to unbundle and
adds the --bundles flag to list only included bundles instead of
included packages.
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
The os-core bundle is not always listed as an explicit include, despite
being an implicit one. Always add the os-core bundle to the set of
included bundles.
Add a --bundles flag to only report the list of included bundles instead
of the package names.
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>