From ed78991edc4755c0276dcb4eb454b43fa38296fc Mon Sep 17 00:00:00 2001 From: dacctal Date: Fri, 3 Apr 2026 14:56:05 +0000 Subject: countless changes --- src/fetch_src.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fetch_src.cc') diff --git a/src/fetch_src.cc b/src/fetch_src.cc index 3e5cca3..0b79a94 100644 --- a/src/fetch_src.cc +++ b/src/fetch_src.cc @@ -1,8 +1,9 @@ #include -#include "fetch_git.cc" +#include "fetch_src.hh" +#include "fetch_git.hh" void fetch_src(Pkg pkg) { - if (fs::exists(pkg.src)) { fs::remove_all(pkg.src); } + if (std::filesystem::exists(pkg.src)) { std::filesystem::remove_all(pkg.src); } if (pkg.url == "") { std::filesystem::create_directories(pkg.src); return; } else if (fetch_git(pkg) == 0) { return; } else { exit(EXIT_FAILURE); } -- cgit v1.2.3