Author: mb
Date: 2015-10-07 12:51:18 +0200 (Wed, 07 Oct 2015)
New Revision: 47157
Modified:
trunk/scripts/dl_cleanup.py
Log:
dl_cleanup: Fix linux blacklist
Modified: trunk/scripts/dl_cleanup.py
===================================================================
--- trunk/scripts/dl_cleanup.py 2015-10-07 10:03:16 UTC (rev 47156)
+++ trunk/scripts/dl_cleanup.py 2015-10-07 10:51:18 UTC (rev 47157)
@@ -99,7 +99,7 @@
)
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 @@
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.
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits