f9a8e7a87f5d579866f030c8168897983befdab3 wong Wed Nov 16 16:28:38 2011 -0800 fixed a mkChangenotes bug, loose was applied to alpha metaDb, but it shouldn't diff --git python/lib/ucscgenomics/mkChangeNotes.py python/lib/ucscgenomics/mkChangeNotes.py index 46d8a38..50513d3 100644 --- python/lib/ucscgenomics/mkChangeNotes.py +++ python/lib/ucscgenomics/mkChangeNotes.py @@ -22,31 +22,31 @@ if not re.match('wgEncode.*', i): continue filestanza = mdb.filter(lambda s: re.match(".*%s.*" % i,s['fileName']), lambda s: s) #should only return 1, just in case if filestanza: for j in filestanza: filtermdb[j.name] = j if 'objStatus' in j and re.search('revoked|replaced|renamed', j['objStatus']): revokedfiles.add(i) revokedset.add(j.name) if 'attic' in j: atticset.add(j.name) else: #pass - if loose and re.match('.*bai', i): + if loose and state == 'old' and re.match('.*bai', i): pass else: errors.append("metaDb: %s is not mentioned in %s" % (i, status)) return (filtermdb, revokedset, revokedfiles, atticset, supplementalset, errors) def __checkAlphaForDropped(self, status, type): errors=[] diff = set(self.oldMdb) - set(self.newMdb) for i in diff: if re.match('.*MAGIC.*', i): continue errors.append("%s: %s missing from %s" % (type, i, status)) return errors