commit e0adbf7a5980d43f38b3416e5488e4fc58fa612d parent 929ad53476ff4eb19260ae0d34a21b224e7ec0e4 Author: parazyd <parazyd@dyne.org> Date: Thu, 13 Jul 2017 11:53:49 +0200 parse through the garbage header in Contents files Diffstat:
M | amprolla_merge_contents.py | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/amprolla_merge_contents.py b/amprolla_merge_contents.py @@ -27,7 +27,10 @@ def merge_contents(filelist): contents = cfile.split('\n') for line in contents: - if line != '': + if line.startswith('This file maps each file'): + while not line.startswith('FILE'): + continue + if line != '' and not line.startswith('FILE'): sin = line.split() if sin[-1] not in pkgs.keys(): pkgs[sin[-1]] = []