64c693464253477e33c957507f1c76cf42dab03b max Thu Mar 13 15:27:42 2014 -0700 change of comment after refs #12849 diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index ae50298..614786a 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -1294,32 +1294,31 @@ // if the file did not exist, replace with gbdbLoc2 newGbdbLoc = cfgOption("gbdbLoc2"); if (newGbdbLoc==NULL) return path; freeMem(path); path = replaceChars(fileName, "/gbdb/", newGbdbLoc); return path; } char *hReplaceGbdbSeqDir(char *path, char *db) /* similar to hReplaceGbdb, but accepts a nib or 2bit "directory" (basename) under * gbdb, like /gbdb/hg19 (which by jkLib is translated to /gbdb/hg19/hg19.2bit). hReplaceGbdb would check only if the dir exists. For 2bit basename, we have to check if the 2bit file exists, do the rewriting, then strip off the - 2bit filename again. Otherwise, /gbdb/hg19 will never be rewritten, as it - exists but might be empty and without a 2bit file. + 2bit filename again. This function works with .nib directories, but nib does not support opening from URLs. As of Feb 2014, only hg16 and anoGam1 use a .nib directory. */ { char buf[4096]; safef(buf, sizeof(buf), "%s/%s.2bit", path, db); char *newPath = hReplaceGbdb(buf); char dir[4096]; splitPath(newPath, dir, NULL, NULL); freeMem(newPath); return cloneString(dir); } char *hTryExtFileNameC(struct sqlConnection *conn, char *extFileTable, unsigned extFileId, boolean abortOnError)