File: remove-binaries.py

package info (click to toggle)
edk2 2020.11-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 187,752 kB
  • sloc: ansic: 1,595,106; perl: 161,094; python: 125,339; asm: 18,555; cpp: 16,555; sh: 7,382; java: 6,173; cs: 3,822; makefile: 3,173; javascript: 1,744; xml: 635; pascal: 402; lisp: 35; sed: 5
file content (12 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3

import os
import sys

if __name__ == '__main__':
    with open('./debian/binary-check.blacklist', 'r') as f:
        blacklist = list(map(lambda s: s.strip(), f.readlines()))

    for path in blacklist:
        sys.stdout.write("Removing %s\n" % (path))
        os.unlink(path)