diff options
author | Michael Büsch <mb@bu3sch.de> | 2015-10-07 10:51:18 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2015-10-07 10:51:18 +0000 |
commit | 325a69486e3258447dd684aca621460e60ff2e16 (patch) | |
tree | 3f00c0e81a1f2e54d74de9778e227e58fb1c26e5 /scripts | |
parent | 9644e33c658ad01da96bc1badc5acef4932dc831 (diff) | |
download | mtk-20170518-325a69486e3258447dd684aca621460e60ff2e16.zip mtk-20170518-325a69486e3258447dd684aca621460e60ff2e16.tar.gz mtk-20170518-325a69486e3258447dd684aca621460e60ff2e16.tar.bz2 |
dl_cleanup: Fix linux blacklist
SVN-Revision: 47157
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dl_cleanup.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/dl_cleanup.py b/scripts/dl_cleanup.py index 8f6bd20..d086761 100755 --- a/scripts/dl_cleanup.py +++ b/scripts/dl_cleanup.py @@ -99,7 +99,7 @@ versionRegex = ( ) blacklist = [ - ("linux", re.compile(r"linux-.*")), + ("linux", re.compile(r"linux-\d.*")), ("gcc", re.compile(r"gcc-.*")), ("wl_apsta", re.compile(r"wl_apsta.*")), (".fw", re.compile(r".*\.fw")), @@ -187,7 +187,10 @@ def main(argv): return 1 if o in ("-B", "--show-blacklist"): for (name, regex) in blacklist: - print(name) + sep = "\t\t" + if len(name) >= 8: + sep = "\t" + print("%s%s(%s)" % (name, sep, regex.pattern)) return 0 # Create a directory listing and parse the file names. |