Some files begin with a '-' character and because we were running tar
commands with the shell, they were being treated as tar options. To
avoid this the end of options flag, '--', is inserted prior to the
input filenames.
Remove a global by having cleanup take an argument for the exit code
and fix the exit code handling at the same time (as RET was the exit
code variable in use but the rest of the code was trying to use ret
lowercase).
swupd hashdump changed its behavior to print out more verbose
information by default that isn't needed for our purposes of just
getting a file's hash. Pass quiet to resolve this issue.
In order to avoid issues where previous manifest includes were
processed, update get_base_manifests to take a bundle argument to
force only a specific include to be checked rather than the includes
list from the config which is for upstream url bundles not the
3rd-party bundle content.
Because updating includes for a bundle is something that is handled,
ensure list prints out the updated configuration for includes rather
than the stale configuration from add.
swupd update -s returns 1 as a success return code so verify if that's
the return code we see or else through an error rather than letter any
non-zero return code count as success.
Enable users to investigate the certificate being used for content
signing (and optionally add it to the trust store) by displaying the
URI where it came from.
The --post-run flag was previous disabling post jobs as the default
behavior was to run post jobs. This didn't really match the name and
expected behavior so switch to --skip-post flag.
Default to add, remove and update commands running the post hooks
resetting the 3rd-party content's bindir after their operations run
successfully. Also enable the post hook to be optionally disabled.
Enable workflows supporting 3rd party repositories. Allow users to
create a bundle that can be added to an exsting installation without
switching from their upstream provider. The content can be hosted
elsewhere and will be maintained seperately from their upstream
provided content. Users can add, list, update and remove this content
from their systems.