IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33407


Ignore:
Timestamp:
Mar 4, 2012, 8:34:42 PM (14 years ago)
Author:
eugene
Message:

use lstat to find links; do not save skyfile on first pass (flips bytes)

Location:
branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/FixSkyForHost.c

    r33404 r33407  
    11# include "dvodist.h"
    2 # define DEBUG 1
     2# define DEBUG 0
    33
    44// examine all of the filenames in the catdir directories and update the host table to note the correct locations
     
    99  for (i = 0; i < skylist->Nregions; i++) {
    1010   
     11    if (i && (i % 1000 == 0)) fprintf (stderr, ".");
     12
    1113    struct stat filestat;
    1214
     
    1517    snprintf (rawfile, 1024, "%s/%s.cpt", catdir, skylist[0].regions[i]->name);
    1618   
    17     int status = stat (rawfile, &filestat);
     19    int status = lstat (rawfile, &filestat);
    1820    if (status == -1) {
    1921      if (errno == ENOENT) continue;
  • branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/dvodist.c

    r33404 r33407  
    2727  }
    2828
    29   CheckHostsAndPaths(hosts);
     29  if (MODE != MODE_FIX) {
     30    CheckHostsAndPaths(hosts);
     31  }
    3032
    31   // save once so repeated calls copy data to the same location
    32   {
    33     char *skyfile = SkyTableFilename (catdir);
    34     SkyTableSave (sky, skyfile);
    35   }
     33  // XXX bad // save once so repeated calls copy data to the same location
     34  // XXX bad {
     35  // XXX bad   char *skyfile = SkyTableFilename (catdir);
     36  // XXX bad   SkyTableSave (sky, skyfile);
     37  // XXX bad }
    3638
    3739  switch (MODE) {
Note: See TracChangeset for help on using the changeset viewer.