generic-poky/meta/lib/oe
Paul Eggleton 7caf628e83 lib/oe/patch: improve accuracy of patch header extraction
When PATCHTOOL = "git", if we need to manually apply a patch and then
commit it (i.e. when git am doesn't work) we try to extract the author /
date / shortlog from the patch header. Make the following improvements
to that extraction process:

* If there's no explicit Subject: but the first line is followed by a
  blank line, isn't an Upstream-Status: or Index: marker and isn't too
  long, then assume it's good enough to be the shortlog. This avoids
  having too many patches with "Upgrade to version x.y" as the shortlog
  (since that is often when patches get added).
* Add --follow to the command we use to find the commit that added the
  patch, so we mostly get the commit that added the patch rather than
  getting stuck on upgrade commits that last moved/renamed the patch
* Populate the date from the commit that added the patch if we were able
  to get the author but not the date from the patch (otherwise you get
  today's date which is less useful).

(From OE-Core rev: 896cfb10ec166a677cbb3b4f8643719cabeb7663)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-09-24 07:30:09 +01:00
..
tests classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
__init__.py lib/oe: turn oe into a namespace package 2014-03-17 14:01:41 +00:00
buildhistory_analysis.py buildhistory-diff: reduce PKGR noise 2016-07-21 07:47:52 +01:00
cachedpath.py cachedpath.py: global name 'error' is not defined 2013-05-15 19:27:11 +03:00
classextend.py lib/classextend: Fix determinism issue 2016-05-11 10:33:42 +01:00
classutils.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
copy_buildsystem.py lib/oe/copy_buildsystem: fix building eSDK with indirect paths in BBLAYERS 2016-09-14 22:22:13 +01:00
data.py classes/lib: Update to match python3 iter requirements 2016-06-02 08:24:00 +01:00
distro_check.py oe/distro_check.py: Fixes for python3 2016-06-12 23:47:19 +01:00
gpg_sign.py lib/oe/gpg_sign: fix output in error paths 2016-07-26 08:56:29 +01:00
license.py license: simple verification of LICENSE_<pkg> values 2016-08-25 22:54:49 +01:00
lsb.py lib/oe/lsb: sanitise the distro identifier 2016-04-13 10:12:52 +01:00
maketype.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
manifest.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
package.py oe/lib/package: handle shlibs files disappearing 2016-07-20 10:28:47 +01:00
package_manager.py package_manager.py: Change diagnostic messages per IRC 2016-09-20 15:11:08 +01:00
packagedata.py classes/lib: Update to explictly create lists where needed 2016-06-02 08:24:00 +01:00
packagegroup.py classes/lib: Update to explictly create lists where needed 2016-06-02 08:24:00 +01:00
patch.py lib/oe/patch: improve accuracy of patch header extraction 2016-09-24 07:30:09 +01:00
path.py oe.path: fix copyhardlinktree() 2016-09-06 10:24:04 +01:00
prservice.py classes/lib: Update to explictly create lists where needed 2016-06-02 08:24:00 +01:00
qa.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
recipeutils.py lib/oe/recipeutils: fix invalid character detection in validate_pn() 2016-09-20 15:11:07 +01:00
rootfs.py image: Deploy images to IMGDEPLOYDIR 2016-09-04 00:07:28 +01:00
sdk.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
sstatesig.py lib/oe/sstatesig: print locked sigs file message only when explicitly called 2016-07-08 09:57:23 +01:00
terminal.py terminal: Add sleep in pid-monitor loop 2016-08-10 10:46:31 +01:00
types.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
utils.py meta: cleanup d.getVar(var, 1) 2016-09-14 22:22:07 +01:00