projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b55e552
)
dl_cleanup: Fix linux blacklist
author
mb
<mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 7 Oct 2015 10:51:18 +0000
(10:51 +0000)
committer
mb
<mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 7 Oct 2015 10:51:18 +0000
(10:51 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47157
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
scripts/dl_cleanup.py
patch
|
blob
|
history
diff --git
a/scripts/dl_cleanup.py
b/scripts/dl_cleanup.py
index
8f6bd20
..
d086761
100755
(executable)
--- 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.