Mercurial > cgi-bin > hgweb.cgi > tincan
diff install-static @ 59:60907204a265 draft
Support case-insensitive filesystems properly.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 31 May 2019 21:20:22 -0700 |
parents | 243603aaab7e |
children |
line wrap: on
line diff
--- a/install-static Fri May 31 20:42:57 2019 -0700 +++ b/install-static Fri May 31 21:20:22 2019 -0700 @@ -8,6 +8,7 @@ from argparse import ArgumentParser import shutil from stat import S_ISDIR, S_ISREG +from tincan import _casef # V a r i a b l e s @@ -26,9 +27,9 @@ def copydir(source, target, exclude=True): for entry in os.listdir(source): - if exclude and entry == WINF: + if exclude and _casef(entry, "upper") == WINF: continue - if entry.startswith(".") or os.path.splitext(entry)[1] in NOT_STATIC: + if entry.startswith(".") or _casef(os.path.splitext(entry)[1]) in NOT_STATIC: continue spath = os.path.join(source, entry) tpath = os.path.join(target, entry)