@@ -472,7 +472,7 @@ void ServiceDatabase::performStartupActions() const
472472 clearConfigHashes ();
473473
474474 // also cleanup temp build dir
475- boost::system:: error_code ec;
475+ error_code ec;
476476 fs::remove_all (temp_directory_path (), ec);
477477 }
478478
@@ -608,7 +608,7 @@ Stamps ServiceDatabase::getFileStamps() const
608608 db->execute (" select * from FileStamps" ,
609609 [&st](SQLITE_CALLBACK_ARGS)
610610 {
611- st[cols[0 ]] = std::stoll (cols[1 ]);
611+ st[cols[0 ]] = fs::file_time_type ( fs::file_time_type::duration ( std::stoll (cols[1 ])) );
612612 return 0 ;
613613 });
614614 return st;
@@ -623,7 +623,7 @@ void ServiceDatabase::setFileStamps(const Stamps &stamps) const
623623 }
624624 String q = " replace into FileStamps values " ;
625625 for (auto &s : stamps)
626- q += " ('" + normalize_path (s.first ) + " ', '" + std::to_string (s.second ) + " ')," ;
626+ q += " ('" + normalize_path (s.first ) + " ', '" + std::to_string (s.second . time_since_epoch (). count () ) + " ')," ;
627627 q.resize (q.size () - 1 );
628628 q += " ;" ;
629629 db->execute (q);
@@ -930,7 +930,7 @@ void PackagesDatabase::download()
930930 auto unpack_dir = get_temp_filename ();
931931 auto files = unpack_file (fn, unpack_dir);
932932 for (auto &f : files)
933- fs::copy_file (f, db_repo_dir / f.filename (), fs::copy_option::overwrite_if_exists );
933+ fs::copy_file (f, db_repo_dir / f.filename (), fs::copy_options::overwrite_existing );
934934 fs::remove_all (unpack_dir);
935935 fs::remove (fn);
936936 };
@@ -968,7 +968,7 @@ void PackagesDatabase::download()
968968 catch (const std::exception &)
969969 {
970970 // cannot throw
971- boost::system:: error_code ec;
971+ error_code ec;
972972 fs::remove_all (db_repo_dir, ec);
973973
974974 download_archive ();
0 commit comments