if(builder.get_verbose()>=2)
IO::print("%s -> %s\n", s, d);
if(!builder.get_dry_run())
if(builder.get_verbose()>=2)
IO::print("%s -> %s\n", s, d);
if(!builder.get_dry_run())
- try
- {
- // Remove old file. Not doing this would cause Bad Stuff when installing libraries.
- unlink(copy.dest);
- }
- catch(const SystemError &e)
+ // Remove old file. Not doing this would cause Bad Stuff when installing libraries.
+ if(FS::exists(copy.dest))
out.write(buf, len);
}
}
catch(const Exception &e)
{
IO::print(IO::cerr, "%s\n", e.what());
out.write(buf, len);
}
}
catch(const Exception &e)
{
IO::print(IO::cerr, "%s\n", e.what());