6 Commits
Author SHA1 Message Date
Castulo Martinez ed23d46a6d Show optional includes with bundle-list --has-dep
Using the "bundle-list --has-dep BUNDLE" command shows a list of bundles
that have BUNDLE as a dependency. However this list is not considering
the bundles that have BUNDLE as an optional dependency.

This commit completes the list by including these bundles.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2020-01-16 15:28:23 -08:00
Castulo Martinez 43c7bf074a Validate tracking directory during swupd init
Insteaf of validating the tracking directory exists and is not empty
every time we want to track a bundle, we can validate it during swupd
initialization.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2019-10-30 13:38:41 -06:00
Castulo Martinez 0491ce4001 Recursive remove defaults to everything tracked
When using bunle-remove --recursive, if the tracking directory is empty
or non existent, all installed bundles should be considered as tracked.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2019-10-30 13:38:41 -06:00
Castulo Martinez 657213a7ff Moving functions specific to bundle-remove
This commit moves those functions that are specific of bundle-remove to
the appropriate bundle_remove.c file.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2019-10-30 13:38:41 -06:00
Castulo Martinez e84d5874d4 Track bundles specified in os-install
When os-install is used to install an OS and the --bundles option is used
to specify some bundles that should be installed in the system along
with the OS, the bundles specified should be tracked.

Closes #1153

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2019-10-24 18:22:00 -05:00
Otavio Pontes c0f9e206ae bundle: Reorganize functions on bundle.c
Move bundle_list specific functions from bundle.c to bundle_list.c.
Keep in bundle.c only generic bundle functions and create a bundle header
file to export them.
Bundle-remove is still left to avoid rebase conflicts.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2019-10-21 14:56:35 -07:00