IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2009, 1:53:26 PM (17 years ago)
Author:
bills
Message:

various changes to insure that we don't delete non-destreked files by mistake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksreplace.c

    r24286 r24556  
    9797    }
    9898
    99 #ifdef NOTYET
    100     if (psMetadataLookupBool(&status, config->arguments, "REPLACE")) {
    101         //     swap the instances for the input and output
    102         //     Note this is a database operation. No file I/O is performed
    103         if (!swapOutputsToInputs(sfiles)) {
    104             psError(PS_ERR_UNKNOWN, false, "failed to swap files");
    105 
    106             // XXX: Now what? I guess swapOutputsToInputs will need to undo anything that
    107             // it has done and give a detailed report of what happened
    108 
    109             psErrorStackPrint(stderr, "");
    110             exit(PS_EXIT_UNKNOWN_ERROR);
    111         }
    112 
    113         if (psMetadataLookupBool(&status, config->arguments, "REMOVE")) {
    114             //      delete the temporary storage objects (which now points to the original image(s)
    115             if (!deleteTemps(sfiles)) {
    116                 psError(PS_ERR_UNKNOWN, false, "failed to delete temporary files");
    117                 // XXX: Now what? At this point the output files have been swapped, so we can't
    118                 // repeat the operation.
    119 
    120                 // Returning error status here is problematic. The inputs have been streak removed
    121                 // but they're still lying around
    122                 // Maybe just print an error message and
    123                 // let other system tools clean up
    124                 psErrorStackPrint(stderr, "");
    125                 exit(PS_EXIT_UNKNOWN_ERROR);
    126             }
    127         }
    128     }
    129 #endif  // REPLACE, REMOVE
    13099//    nebServerFree(ourNebServer);
    131100    psFree(config);
Note: See TracChangeset for help on using the changeset viewer.