]> xenbits.xensource.com Git - people/gdunlap/xsatool.git/commit
xsa: Patch de-duping, first take
authorGeorge Dunlap <george.dunlap@citrix.com>
Mon, 20 Nov 2017 11:40:22 +0000 (11:40 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 20 Nov 2017 11:40:22 +0000 (11:40 +0000)
commit1ee141b407feccd39f1b5e22224b97f63ac232d2
tree73e7c46dd28512e6ab0e16c2e01bf289bad24bff
parent751df62d297a565a05330c0e1fd7bb07dbf2855b
xsa: Patch de-duping, first take

First take of patch deduping: Run a separate command which, for each
version of an XSA:
 - Makes a branch with the current recipe
 - Takes the hash of that tree
 - Tries to make a branch with a potential "de-dupped" recipe
 - If that works, compare the hash with the previous hash

If the dedupped recipe applies, and the hashes match, change to using
the de-dupped recipe.  Otherwise, use the current recipe.

This will need to be reworked somewhat to support automatic de-dupping
during patch creation, but get a working copy in the tree.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
git.go
main.go
recipe.go
xsa.go