diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2013-03-31 23:15:25 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2013-03-31 23:15:25 +0200 |
commit | 771fdc05ca3597a22a52498d6fa794fecbd7b348 (patch) | |
tree | 7d0748ca5eaf479e4bb4a26138884266663b10a7 /gentree.py | |
parent | cf2b28bd1642305515171f6d70b9f033c4e064e5 (diff) |
apply patches correctly
Not all patch dirs hold an INFO file, so don't require it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'gentree.py')
-rwxr-xr-x | gentree.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -186,12 +186,15 @@ def main(): patchdirs = [] for root, dirs, files in os.walk(os.path.join(source_dir, 'patches')): - if 'INFO' in files: - patchdirs.append(root) + for f in files: + if f.endswith('.patch'): + patchdirs.append(root) + break patchdirs.sort() for pdir in patchdirs: l = os.listdir(pdir) - l.remove('INFO') + if 'INFO' in l: + l.remove('INFO') printed = False for pfile in l: pfile = os.path.join(pdir, pfile) |