- // Remove old file. Not doing this would cause Bad Stuff when installing libraries.
- unlink(copy.dest);
- }
- catch(const SystemError &e)
- {
- if(e.get_error_code()!=ENOENT)
- {
- IO::print(IO::cerr, "%s\n", e.what());
- done=error=true;
- return;
- }
- }
-
- try
- {
- IO::File in(copy.src.str());
- IO::File out(copy.dest.str(), IO::M_WRITE);
+ IO::File in(src_path.str());
+ IO::File out(dst_path.str(), IO::M_WRITE);