make prefix comparison case insensitive.

This commit is contained in:
Ralf Schmitt 2011-07-29 14:20:03 +02:00
parent 456a2c0983
commit 6071bc9f85
1 changed files with 2 additions and 1 deletions

View File

@ -22,9 +22,10 @@ class pkgset(object):
self.root = root
def find_packages(self, prefix=""):
prefix = prefix.lower()
files = []
for x in os.listdir(self.root):
if not x.startswith(prefix):
if not x.lower().startswith(prefix):
continue
fn = os.path.join(self.root, x)
if os.path.isfile(fn):