Skip to content

Commit 34a1945

Browse files
committed
Print out all case insensitive filename conflicts
1 parent 368f6a0 commit 34a1945

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/make-sqlite.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import sqlite3
99
import subprocess
1010
import sys
11+
import re
1112

1213
from collections import Counter
1314
from lxml import etree
@@ -51,7 +52,8 @@
5152
counted_lowercase_names = Counter([name.lower() for name in filenames])
5253
most_common_entry = counted_lowercase_names.most_common(1)[0]
5354
if most_common_entry[1] > 1:
54-
print("%s failed case-insensitivity testing." % (most_common_entry[0]))
55+
dupe_filename = re.compile(re.escape(most_common_entry[0]), re.IGNORECASE)
56+
print("%s failed case-insensitivity testing." % filter(dupe_filename.match, filenames))
5557
print("Rules exist with identical case-insensitive names, which breaks some filesystems.")
5658
sys.exit(1)
5759

0 commit comments

Comments
 (0)