scripts/combo-layer: skip empty commits
If a commit is empty (for example, commits brought over from svn where only properties were changed) then attempting to apply it with "git am" will result in the error "Patch format detection failed", so skip it instead. (From OE-Core rev: 5754bc7bcc2f57b6b56e67e2900eeaab5bc184d8) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c04305e695
commit
ba5537d768
|
@ -252,6 +252,9 @@ def action_apply_patch(conf, args):
|
|||
for line in open(repo['patchlist']):
|
||||
patchfile = line.split()[0]
|
||||
lastrev = line.split()[1]
|
||||
if os.path.getsize(patchfile) == 0:
|
||||
logger.info("(skipping %s - no changes)", lastrev)
|
||||
else:
|
||||
cmd = "git am --keep-cr -s -p1 %s" % patchfile
|
||||
logger.info("Apply %s" % patchfile )
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue