10 Commits
Author SHA1 Message Date
Caio Marcelo de Oliveira Filho 01bb863c3f Call check dependencies before doing work
Changed it to be a function in main.go instead of a method since it
wasn't using anything related to the Builder struct.

Minor tweaks to make code more idiomatic: avoid i for the non-index
variable in range, return an error instead of printing the error and
boolean.

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2017-08-24 15:13:24 -07:00
Caio Marcelo de Oliveira Filho 149c17434a builder: remove the Get method
The method (and use of reflect package) is unnecessary when we are
using a literal string as argument.

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2017-08-24 15:13:24 -07:00
Caio Marcelo de Oliveira Filho 90baf5a7b4 Avoid interface{} when not needed
Create a New variant that takes a configuration and returns a Builder
instead.

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2017-08-24 15:13:24 -07:00
Caio Marcelo de Oliveira Filho 738910ecf3 Merge git helper functions into one
And also dump the Stderr of the command to os.Stderr. Without a git
failure might not give enough information about what gone wrong,
e.g. when trying to call "git commit" without a user.email configured.

The commit message was changed to include the Clear version from which
the Mix was based off.

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2017-08-24 14:55:41 -07:00
Tudor Marcu d56bec40d7 Use absolute path for certificates
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2017-08-09 14:31:14 -07:00
Tudor Marcu 2698d5017e Strip newline from version files
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2017-06-19 11:45:58 -07:00
Tudor Marcu c2990fc2b7 Hardlink rpms when calling add-rpms
To save time on copying fullfiles, just make a hardlink from the files in
RPMDIR to the REPODIR.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2017-05-25 14:15:30 -07:00
Patrick McCarty 29f23c710e Ensure update-ca directory is created
Starting with swupd-client v3.8.3, the update-ca directory is no longer
created for the build, so the cert copy is failing. Fix the issue by
creating the directory before the copy operation.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2017-03-14 11:15:11 -07:00
Tudor Marcu 2b47ca4e0b Add auto-increment flag to build-update
Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2017-03-03 11:49:15 -08:00
Tudor Marcu b671aba659 Introduce new mixer tool
The tools have been converted from many bash scripts into a single binary,
written in Go. This creates a codebase that is much easier to edit and
maintain, and a single tool that provides all the functionality needed. The
interface is more intuitive and easy to use as it provides options and menus
for each subcommand.

Signed-off-by: Tudor Marcu <tudor.marcu@intel.com>
2017-03-01 01:50:41 -08:00