diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-11-10 14:45:16 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 11:02:27 +0000 |
commit | d9971f5dc8eb7de551fd6f5e058fd24770ef5d78 (patch) | |
tree | da741b86e064398e4daabf9ac537614b543ba544 /scripts/lib/devtool/standard.py | |
parent | bdc844b3f0c3fbddcd3523095899a5bd29797704 (diff) | |
download | openembedded-core-d9971f5dc8eb7de551fd6f5e058fd24770ef5d78.tar.gz openembedded-core-d9971f5dc8eb7de551fd6f5e058fd24770ef5d78.tar.bz2 openembedded-core-d9971f5dc8eb7de551fd6f5e058fd24770ef5d78.zip |
lib/oe/patch: fix handling of patches with no header
If a patch applied by a recipe has no header and we turn the recipe's
source into a git tree (when PATCHTOOL = "git" or when using devtool
extract / modify / upgrade), the commit message ends up consisting only
of the original filename marker ("%% original patch: filename.patch").
When we come to do turn the commits back into a set of patches in
extractPatches(), this first line ends up in the "Subject: " part of
the file, but we were ignoring it because the line didn't start with the
marker text. The end result was we weren't able to get the original
patch name. Strip off any "Subject [PATCH x/y]" part before looking for
the marker text to fix.
This caused "devtool modify openssl" followed by "devtool update-recipe
openssl" (without any changes in-between) to remove version-script.patch
because that patch has no header and we weren't able to determine the
original filename.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/devtool/standard.py')
0 files changed, 0 insertions, 0 deletions