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 | 3481bb4b6a0b1bf59a4ba6f781ec6d419260be07 (patch) | |
tree | 260e7dba18ec8a8c21ace533b7362affee5a83c6 | |
parent | e0242c56947c50770d24d73abcf110625a0e148a (diff) | |
download | master-187ad058-3481bb4b6a0b1bf59a4ba6f781ec6d419260be07.tar.gz master-187ad058-3481bb4b6a0b1bf59a4ba6f781ec6d419260be07.tar.bz2 master-187ad058-3481bb4b6a0b1bf59a4ba6f781ec6d419260be07.zip |
dl_cleanup: Fix linux blacklist
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47157 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 8f6bd200b8..d086761dc7 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. |