This release adds a new feature and fixes a few bugs:
New feature:
- Adds a new subcommand, "search", that can be used for searching for
bundles that provide a certain binary or library; if there are any
bundle providers, they are printed to the console.
Bug fixes:
- Fixes peer links of manifests between two Manifest.MoMs; as a result,
changed/added/deleted manifest reporting is fixed for updates, and
more delta manifests are likely to apply if available.
- Adds more specific reporting for Curl error messsages.
- Make 'swupd verify --install' output less verbose; files in the target
directory are not expected to exist, so reporting missing/fixed for
files is unnecessary unless errors are encountered.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
clang-format does not have an option to make braces mandatory around
blocks (if/for/while/etc), but this is a style rule we are enforcing.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
The following command was run with clang 3.7.1:
$ clang-format -i -style=file include/*.h src/*.c test/*.c
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
clang-format is very picky about comment placement... Comments
immediately preceding labels are indented strangely, so move the
comments after labels instead. Also, adjust comment indentation level to
align with the surrounding code.
One other minor adjustment is needed for an array initialization; the
opening brace for the initialization must appear on the same line, or
else clang-format will format the entire statement differently.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
To make the code style more consistent, I will be running clang-format
to enforce the style guidelines (very similar to the Linux kernel
style). Add a clang-format style file to get started.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
To avoid compiler warnings about invalid characters in the argument to
#warning, always pass a string literal.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
To generate test coverage reports, run:
$ ./configure --enable-coverage
$ make check
$ make coverage
Results can be browsed from the coverage/index.html file.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
New swupd primary command, offers the ability to
search for the provider of a specified binary or library.
A full complement of bundle manifests for the os-release version
is downloaded to the client prior to conducting any search. This
patch has been designed to enable this download, or staging, to
take place prior and separate from use of the search function.
However, with each search, the manifest complement is checked to
ensure completion.
Overhead:
A check against the Clear Linux 6300 manifest set
shows a search will entail a ONE TIME 83 MB network download
(the compressed manifest set), and a constant decompressed 400MB
usage on disk. Future searches will only require new or modified
manifests be downloaded.
Finally, download size is provided to notify user of expected delay
-----
Ex:
"Downloading manifests. Downloading 83.23 MB..."
Signed-off-by: Brad T. Peters <brad.t.peters@intel.com>
In each of these Curl error cases, we have no choice but to terminate
operation. We cannot programmatically work around these issues,
therefore this patch adds error msg details so user can pursue a
solution
Signed-off-by: Brad T. Peters <brad.t.peters@intel.com>
During a swupd verify --install, files are expected to be missing and must
be "fixed," so do not print out that it is missing/fixed in this case.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>