Changeset 24556 for trunk/magic/remove/src/streaksreplace.c
- Timestamp:
- Jun 25, 2009, 1:53:26 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksreplace.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksreplace.c
r24286 r24556 97 97 } 98 98 99 #ifdef NOTYET100 if (psMetadataLookupBool(&status, config->arguments, "REPLACE")) {101 // swap the instances for the input and output102 // Note this is a database operation. No file I/O is performed103 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 that107 // it has done and give a detailed report of what happened108 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't118 // repeat the operation.119 120 // Returning error status here is problematic. The inputs have been streak removed121 // but they're still lying around122 // Maybe just print an error message and123 // let other system tools clean up124 psErrorStackPrint(stderr, "");125 exit(PS_EXIT_UNKNOWN_ERROR);126 }127 }128 }129 #endif // REPLACE, REMOVE130 99 // nebServerFree(ourNebServer); 131 100 psFree(config);
Note:
See TracChangeset
for help on using the changeset viewer.
