To help debug issues related to SWUPD config values being set in the
chroot, or not, print out diagnostic messages to display the expected
values.
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
We cannot be sure of the encoding used for certain filenames or the locale on
a specific system, so use raw bytes and don't worry about the encoding of the
filenames.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
If there are a lot of packages then the m4 output will overflow the max
PIPE buffer, and the wait() will never finish. This patch reads the output
in chunks and then creates a string of the entire output to pass to yum.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
The os.path.join() function discard any previos paths/variables when it
encounters one starting with a leading "/" so the statedir & bundle name were
completely ignored when it ran into /usr/share/defaults/...
This fixes it so the path is correctly made, and the dirs and files should be
installed correctly.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
The update client currently defaults to the public clearlinux url, and must be
overridden with cmd line options to use other version/content/format urls. This
introduces a problem when running a mix, and not supplying the mix URL will
cause swupd to update from the official URL, rather than the mixer url.
With this patch, the URLs can all be specified and are inserted into conf files
that the swupd client will read, to know what URL to default to.
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>