119 Commits
Author SHA1 Message Date
John L. Whiteman 817baa493f Bumped version to 4
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
v4
2015-05-07 14:55:33 -07:00
Ikey Doherty 406e8ce8cb Drop stateless config for now as it currently makes no sense
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 19:53:42 +01:00
Ikey Doherty dd70aa62e8 tests: Slightly enhance bool check
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 16:10:04 +01:00
Ikey Doherty 673b6b9a70 tests: Add bool test for TemplateContext
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 16:05:53 +01:00
Ikey Doherty ab617bcfb6 tests: Add list check for TemplateContext
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 16:02:09 +01:00
Ikey Doherty 3a0e7f7594 Ensure make distcheck passes by incorporating files in final tarball
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 15:22:56 +01:00
Ikey Doherty 5f1bfcca3d Fix location of header 2015-05-07 15:11:54 +01:00
Ikey Doherty 93b25fce23 Refactor tree - move output handlers into new subdir
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 14:57:55 +01:00
Ikey Doherty 812f0b4f97 Refactor tree - move library components into new subdir
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 14:25:06 +01:00
Ikey Doherty 2a5ff06670 Refactor tree - move packaging formats into independent directory
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-07 14:18:45 +01:00
John L. Whiteman f54ac7364f docs: Add cve-check-tool.conf section in man page
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-05-06 16:18:24 -07:00
John L. Whiteman 3c704633f9 jira: csv report to show total open bugs
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-05-06 14:30:59 -07:00
John L. Whiteman 1f29ceb6f1 jira: Add self->bdb field to track bugs globally
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-05-06 11:41:00 -07:00
Ikey Doherty 35d4e141c8 csv: Use stdout
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-06 18:47:21 +01:00
John L. Whiteman 13a9818997 jira: change status to Ignore if will not fix
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-05-04 17:05:17 -07:00
John L. Whiteman b221362215 jira: Added bug status close and will not fix
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-05-04 16:46:23 -07:00
John L. Whiteman fa63ed77eb jira: set status to open if at least one dup is open
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-05-01 16:25:13 -07:00
Ikey Doherty 21b6281079 template: Fix broken iteration (missing last element)
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-05-01 18:07:59 +01:00
Ikey Doherty 23eeb21d47 Switch from stderr to stdout across the board (resolves issue #13)
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 20:27:59 +01:00
Ikey Doherty ecfc802da0 data: No longer make defaults file readably to owner
This file at present contains no content, and it would be up to the admin
to override with a local secure configuration. Perhaps in future we will
check the permissions for the site file when collecting data that is better
being secure.

This fixes issue #14

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 20:20:36 +01:00
Ikey Doherty 463bd587ee template: Explicitly destroy section upon exit
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 18:30:27 +01:00
Ikey Doherty 860072d26f template: Plug large leak for subcontext usage
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 18:26:21 +01:00
Ikey Doherty eb603bf9b1 template: Support list type, move into a single template file
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 16:26:53 +01:00
Ikey Doherty 5764f5e729 template: Move to explicit types, for now this is just bool and string
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 14:37:19 +01:00
Ikey Doherty 78005b0c66 template: Fix broken logic in check
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 13:52:57 +01:00
Ikey Doherty dc74b0fb1e Add initial support for bug status, only rendered when bugs are enabled
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 13:51:10 +01:00
Ikey Doherty 16ffd4277d template: Add dynamic subcontext support for conditional sections
This enables us to conditionally render sections based on whether a key
exists in our value table at any point. Due to the bottom up approach
a child context may override a parent context in future, when we support
explicit "true"/"false", and removals.

This will also reduce the boilerplate needed to utilise TemplateContext,
enabling conditionals within template_string consumers.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 13:48:13 +01:00
Ikey Doherty f6fdea818b Release v3
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
v3
2015-04-30 12:29:41 +01:00
Ikey Doherty 6dc11a4aed template: Move to block-based render passes for sections
We now build a complete unexpanded section at a time whilst iterating the
document structure. As we exit each subsection, we push our block into the
parent render block. This leads to a bottom up render approach for emitting
sections, skipping non-emitters. In future this can be expanded upon by
enabling iterative conditional sections, as a full section block is available
to render as many times as required into the parent context.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 12:17:17 +01:00
Ikey Doherty 313bdb6745 Include stdint.h to resolve issue #12
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-30 09:54:14 +01:00
John L. Whiteman d0fab90cb5 jira: Set resolution to empty string, not N/A
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-04-29 16:21:12 -07:00
John L. Whiteman 5bbae5277e jira: Added resolution field
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-04-29 16:17:56 -07:00
John L. Whiteman 70a2bdef07 jira: Added check to prevent dups for same session
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-04-29 14:25:54 -07:00
John L. Whiteman 71866dc00c Removed hashtable functions to simplify things
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-04-29 13:28:22 -07:00
Ikey Doherty cb7553c4aa Revert "Make clang a bit happier"
Clang may remain somewhat depressed. Sane C syntax is preferable anyway
This reverts commit 015b496573.
2015-04-29 16:00:49 +01:00
Ikey Doherty 015b496573 Make clang a bit happier
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-29 14:42:41 +01:00
Ikey Doherty 6874651104 template: Respect template visibility in insert_missing
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-29 13:22:23 +01:00
Ikey Doherty 047d07ac2b template: Remove unnecessary/dupe code
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-29 13:17:29 +01:00
Ikey Doherty 691cd3e6b4 template: Reap children automatically when added to table
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-29 13:13:47 +01:00
Ikey Doherty 20a7a47af1 template: Large overhaul for efficency and usage (Context)
We now swap the old code out for a new lighter "TemplateContext", which
currently now supports conditional renders via Mustache-style sections.

In the future this will be revisted further to add iteration supports,
but for now stack-traversing child contexts are supported, with a boolean
1-renderpass section support.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-29 12:59:43 +01:00
John L. Whiteman 901dec4378 Removed bdb field. Replaced hashtable with list
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-04-28 17:37:50 -07:00
Ikey Doherty 11fb359118 docs: Document options reported absent in issue #9
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-29 00:28:13 +01:00
Ikey Doherty f43617626e Add 'list' parameter to list supported package types
We add an explicit 'list' value to the type check so that users can determine
the supported packages in an error-free fashion, per issue #10. Making the
parameter optional is technically possible, but with the number of issues
that GLib's GOption* API present, it seems likely it will be redone in the
future to be less insane.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-29 00:18:12 +01:00
Ikey Doherty 5052ba67e2 docs: Update manpage to reflect requirement on file being named 'packages'
This resolves issue #7

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-27 22:54:50 +01:00
Ikey Doherty 583c899f66 rpm: Correctly split string for issue #6
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-27 22:50:12 +01:00
Ikey Doherty b4ecc6d5a4 Ensure eopkg and pkgbuild set package type
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-27 21:18:01 +01:00
Ikey Doherty 2993bf5d17 rpm: Ensure all patches are actually applied by default
This resolves issue #6 - but would require further testing

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-27 21:13:19 +01:00
John L. Whiteman 009c95842d jira: Add more tests
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-04-16 16:51:43 -07:00
John L. Whiteman 0de1f972ab jira: Fix NULL check segmentation bug
Signed-off-by: John L. Whiteman <john.l.whiteman@intel.com>
2015-04-16 13:35:04 -07:00
Ikey Doherty 4490985e30 Increase coverage via CVE ignore checks
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-04-16 19:12:22 +01:00