mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Merge pull request #461 from hharte/fix_upgrade_windows
upgrade-flux-file: Fix for Windows
This commit is contained in:
@@ -300,6 +300,12 @@ int main(int argc, const char* argv[])
|
|||||||
std::cout << "Writing output file...\n";
|
std::cout << "Writing output file...\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sqlite3_close(db);
|
||||||
|
|
||||||
|
if (remove(filename.c_str()) != 0)
|
||||||
|
Error() << fmt::format(
|
||||||
|
"couldn't remove input file: {}", strerror(errno));
|
||||||
|
|
||||||
if (rename(outFilename.c_str(), filename.c_str()) != 0)
|
if (rename(outFilename.c_str(), filename.c_str()) != 0)
|
||||||
Error() << fmt::format(
|
Error() << fmt::format(
|
||||||
"couldn't replace input file: {}", strerror(errno));
|
"couldn't replace input file: {}", strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user