1a57630bdc45465db3b21ba99d8537d027ced0c9 max Thu Jul 8 07:45:02 2021 -0700 fixing GBIB problem due to cartVerstrion string, refs #27752 diff --git src/hg/hgMirror/hgMirror src/hg/hgMirror/hgMirror index ce6d349..de6ebe2 100755 --- src/hg/hgMirror/hgMirror +++ src/hg/hgMirror/hgMirror @@ -249,30 +249,32 @@ continue fields = line.split("\t") fields = [f.replace("\a", "\n").replace("\b", "\t") for f in fields] row = Struct(*fields) rows.append(row) return rows def parseRa(text): " parse ra-style string and return as dict name:value " lines = text.split("\n") data = dict() for l in lines: if len(l)==0: continue + if " " not in l: + continue key, val = string.split(l, " ", maxsplit=1) data[key] = val return data def getParent(settingDict): """ given a dict key -> value from trackDb, return the 'parent' of a track, either the parent or superTrack or subTrack names This is really confusing... """ parent = None # subTrack is like "parent" if "subTrack" in settingDict: # "parent <trackName> on" # remove the "on" part