exit(1);
}
printf("Found %d duplicate Path records.\n", name_list.num_ids);
- if (verbose && yes_no("Print them? (yes/no): ")) {
+ if (name_list.num_ids && verbose && yes_no("Print them? (yes/no): ")) {
print_name_list(&name_list);
}
if (fix) {
exit(1);
}
printf("Found %d orphaned JobMedia records.\n", id_list.num_ids);
- if (verbose && yes_no("Print them? (yes/no): ")) {
+ if (id_list.num_ids && verbose && yes_no("Print them? (yes/no): ")) {
int i;
for (i=0; i < id_list.num_ids; i++) {
sprintf(buf,
exit(1);
}
printf("Found %d orphaned File records.\n", id_list.num_ids);
- if (verbose && yes_no("Print them? (yes/no): ")) {
+ if (name_list.num_ids && verbose && yes_no("Print them? (yes/no): ")) {
int i;
for (i=0; i < id_list.num_ids; i++) {
sprintf(buf,
exit(1);
}
printf("Found %d orphaned Path records.\n", id_list.num_ids);
- if (verbose && yes_no("Print them? (yes/no): ")) {
+ if (id_list.num_ids && verbose && yes_no("Print them? (yes/no): ")) {
int i;
for (i=0; i < id_list.num_ids; i++) {
sprintf(buf, "SELECT Path FROM Path WHERE PathId=%u", id_list.Id[i]);
exit(1);
}
printf("Found %d orphaned Filename records.\n", id_list.num_ids);
- if (verbose && yes_no("Print them? (yes/no): ")) {
+ if (id_list.num_ids && verbose && yes_no("Print them? (yes/no): ")) {
int i;
for (i=0; i < id_list.num_ids; i++) {
sprintf(buf, "SELECT Name FROM Filename WHERE FilenameId=%u", id_list.Id[i]);
exit(1);
}
printf("Found %d orphaned FileSet records.\n", id_list.num_ids);
- if (verbose && yes_no("Print them? (yes/no): ")) {
+ if (id_list.num_ids && verbose && yes_no("Print them? (yes/no): ")) {
int i;
for (i=0; i < id_list.num_ids; i++) {
sprintf(buf, "SELECT FileSetId,FileSet,MD5 FROM FileSet "