9 Commits
Author SHA1 Message Date
Patrick McCarty b925a8481c Run clang-format on the code
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>
2016-03-07 14:23:18 -08:00
Patrick McCarty 74973c8f1d Minor adjustments before running clang-format
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>
2016-03-07 14:23:18 -08:00
Patrick McCarty 814ce477d8 Pass string literals to #warning
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>
2016-03-07 14:23:18 -08:00
Patrick McCarty 840206b585 Fix two new compiler warnings
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-03-07 14:23:18 -08:00
Brad T. Peters e0be8cf0d3 swupd-client: Add Search Feature
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>
2016-03-07 14:23:01 -08:00
Brad T. Peters 79f1c7fb6a swupd-client: Add Curl bottom layer error messages
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>
2016-02-25 13:54:31 -08:00
Tudor Marcu 2a23c3fbe8 Fix massive output spam
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>
2016-02-25 11:53:31 -08:00
Archana Shinde d424cce760 Sort the manifests instead of files associated with the MOM
The function link_submanifests compares the bundle manifest names.
So sort the bundle manifests rather than the files here.
2016-02-24 12:36:55 -08:00
Patrick McCarty c42f8a3aa1 Initial commit
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-02-24 09:34:13 -08:00