Skip to content
Snippets Groups Projects
Commit 325a6948 authored by Michael Büsch's avatar Michael Büsch
Browse files

dl_cleanup: Fix linux blacklist

SVN-Revision: 47157
parent 9644e33c
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment