dl_cleanup: Fix linux blacklist
SVN-Revision: 47157
This commit is contained in:
parent
9644e33c65
commit
325a69486e
1 changed files with 5 additions and 2 deletions
|
@ -99,7 +99,7 @@ versionRegex = (
|
||||||
)
|
)
|
||||||
|
|
||||||
blacklist = [
|
blacklist = [
|
||||||
("linux", re.compile(r"linux-.*")),
|
("linux", re.compile(r"linux-\d.*")),
|
||||||
("gcc", re.compile(r"gcc-.*")),
|
("gcc", re.compile(r"gcc-.*")),
|
||||||
("wl_apsta", re.compile(r"wl_apsta.*")),
|
("wl_apsta", re.compile(r"wl_apsta.*")),
|
||||||
(".fw", re.compile(r".*\.fw")),
|
(".fw", re.compile(r".*\.fw")),
|
||||||
|
@ -187,7 +187,10 @@ def main(argv):
|
||||||
return 1
|
return 1
|
||||||
if o in ("-B", "--show-blacklist"):
|
if o in ("-B", "--show-blacklist"):
|
||||||
for (name, regex) in 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
|
return 0
|
||||||
|
|
||||||
# Create a directory listing and parse the file names.
|
# Create a directory listing and parse the file names.
|
||||||
|
|
Loading…
Reference in a new issue