summaryrefslogtreecommitdiffstats
path: root/scripts/combo-layer
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/combo-layer')
-rwxr-xr-xscripts/combo-layer4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer
index fa60579272..5d61fb1c16 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -665,6 +665,10 @@ def action_update(conf, args):
665 # Empty, ignore it. Must also remove from revlist. 665 # Empty, ignore it. Must also remove from revlist.
666 with open(patch, 'r') as f: 666 with open(patch, 'r') as f:
667 fromline = f.readline() 667 fromline = f.readline()
668 if not fromline:
669 # Patch must have been empty to start with. No need
670 # to remove it.
671 continue
668 m = re.match(r'''^From ([0-9a-fA-F]+) .*\n''', fromline) 672 m = re.match(r'''^From ([0-9a-fA-F]+) .*\n''', fromline)
669 rev = m.group(1) 673 rev = m.group(1)
670 logger.debug('skipping empty patch %s = %s' % (patch, rev)) 674 logger.debug('skipping empty patch %s = %s' % (patch, rev))