X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fdl_cleanup.py;h=d086761dc71a3b5dfd30140071673f9f3cde411b;hb=2af41487e0af217b1a29c8fc73eb36e932780c7c;hp=8f6bd200b8916ea89b6790ac6597e4729c2bd1d7;hpb=9644e33c658ad01da96bc1badc5acef4932dc831;p=openwrt%2Fstaging%2Fchunkeey.git 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.