src/hg/utils/refreshNamedSessionCustomTracks/refreshNamedSessionCustomTracks.c 1.9

1.9 2009/05/18 21:38:07 galt
tweak to handle udcCache location and process dataUrl setting to touch files in cache and report them for the do-not-kill list
Index: src/hg/utils/refreshNamedSessionCustomTracks/refreshNamedSessionCustomTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/refreshNamedSessionCustomTracks/refreshNamedSessionCustomTracks.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/hg/utils/refreshNamedSessionCustomTracks/refreshNamedSessionCustomTracks.c	30 Mar 2009 22:14:25 -0000	1.8
+++ src/hg/utils/refreshNamedSessionCustomTracks/refreshNamedSessionCustomTracks.c	18 May 2009 21:38:07 -0000	1.9
@@ -7,8 +7,9 @@
 #include "cheapcgi.h"
 #include "hdb.h"
 #include "customTrack.h"
 #include "customFactory.h"
+#include "hui.h"
 
 static char const rcsid[] = "$Id$";
 
 #define savedSessionTable "namedSessionDb"
@@ -139,8 +140,10 @@
 struct slPair *updateList = NULL, *update;
 char *actualDbName = sqlGetDatabase(conn);
 int liveCount=0, expiredCount=0;
 
+setUdcCacheDir();  /* programs that use udc must call this to initialize cache dir location */
+
 if (!sameString(centralDbName, actualDbName))
     errAbort("Central database specified in hg.conf file is %s but %s "
 	     "was specified on the command line.",
 	     actualDbName, centralDbName);