]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/patch: improve extraction of patch header
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 11 Oct 2015 14:41:20 +0000 (15:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:30:54 +0000 (21:30 +0000)
commit13ec296b5c35aefa2c44f64f8bd1ef54c4a0a731
tree14a0551aa0730917026f134871d9638acbcc9c97
parente49a66fd898dd44e54c77a838ebef3d983ed2a03
lib/oe/patch: improve extraction of patch header

For patches that we have to extract the header information by hand (i.e.
will not apply with "git am"), make the following improvements:

* If we can't extract author/date/subject, then try to do so from the
  commit that added the patch in git (assuming the metadata is tracked
  by git)
* Take only first Signed-off-by line instead of last
* Accept any case for "Signed-off-by" in case author has typed it by
  hand
* Improve conditional - we can skip the other cases if one matches

Implements [YOCTO #7624].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/patch.py