ret = start_command(&cmd);
if (ret)
- return 1;
+ return ret;
nr_packs = 0;
out = xfdopen(cmd.out, "r");
fclose(out);
ret = finish_command(&cmd);
if (ret)
- return 1;
+ return ret;
argv_array_clear(&cmd_args);
if (!nr_packs && !quiet)
chmod(fname_old, statbuffer.st_mode);
}
if (rename(fname_old, fname))
- exit(errno);
+ die_errno(_("renaming '%s' failed"), fname_old);
free(fname);
free(fname_old);
}
packdir,
item->string,
exts[ext]);
- remove_path(fname);
+ if (remove_path(fname))
+ warning(_("removing '%s' failed"), fname);
}
}