dev/chain_build.py: use set for debs so no duplication
Blair Noctis
1 year, 2 months ago
140 | 140 | for crate, deb in built: |
141 | 141 | if deb is not None: |
142 | 142 | print(crate, deb) |
143 | built, debs = map(list, zip(*built)) | |
143 | built, debs = map(set, zip(*built)) | |
144 | 144 | except: |
145 | 145 | built, debs = [], [] |
146 | 146 | print('No recently built packages') |
157 | 157 | print(e) |
158 | 158 | _print(f'Failed to build crate {crate}. Please fix it and rerun the same command to resume the build chain.') |
159 | 159 | exit(1) |
160 | built.append(crate) | |
160 | built.add(crate) | |
161 | 161 | if ver is None: |
162 | 162 | # used in a glob, so |
163 | 163 | ver = '-' |
164 | debs.append(_find(f'build/*{_todash(crate)}-dev*{ver}*.deb')[0][6:]) | |
164 | debs.add(_find(f'build/*{_todash(crate)}-dev*{ver}*.deb')[0][6:]) | |
165 | 165 | |
166 | 166 | |
167 | 167 | if __name__ == '__main__': |