35114d53d6d6f344b64664fce17fae22dd9953ad
wong
  Wed Nov 30 14:16:24 2011 -0800
fixed a bad regex for supplemental
diff --git python/lib/ucscgenomics/track.py python/lib/ucscgenomics/track.py
index 901b8b0..1dfb465 100644
--- python/lib/ucscgenomics/track.py
+++ python/lib/ucscgenomics/track.py
@@ -191,31 +191,31 @@
         except AttributeError:
             self._releaseFiles = list()
             count = 1
             
             while os.path.exists(self.downloadsDirectory + 'release' + str(count)):
                 releasepath = self.downloadsDirectory + 'release' + str(count) + '/'
                 md5s = readMd5sums(releasepath + 'md5sum.txt')
                 releasefiles = dict()
                 
                 for file in os.listdir(releasepath):
                     if file != 'md5sum.txt' and md5s != None and file in md5s and not os.path.isdir(releasepath + file):
                         releasefiles[file] = TrackFile(releasepath + file, md5s[file])
                     elif not os.path.isdir(releasepath + file):
                         releasefiles[file] = TrackFile(releasepath + file, None)
                     elif os.path.isdir(releasepath + file):
-                        if not re.match('supplemental', releasepath + file):
+                        if not re.match('.*supplemental.*', releasepath + file):
                             continue
                         for innerfile in os.listdir(releasepath + file):
                             pathfile = file + "/" + innerfile 
                             releasefiles[pathfile] = TrackFile(releasepath + pathfile, None)
         #releasefiles.sort()
                 self._releaseFiles.append(releasefiles)
                 count = count + 1
                 
             return self._releaseFiles
         
     @property 
     def alphaMetaDb(self):
         """The Ra file in the metaDb for this composite"""
         try:
             return self._alphaMetaDb