diff options
| author | dacctal <dacctalyt@gmail.com> | 2026-04-03 14:56:05 +0000 |
|---|---|---|
| committer | dacctal <dacctalyt@gmail.com> | 2026-04-03 14:56:05 +0000 |
| commit | ed78991edc4755c0276dcb4eb454b43fa38296fc (patch) | |
| tree | 460da5399e34e1dce7a293cb22578da15977d895 /src/fetch_src.cc | |
| parent | 2a6b92ed130ade1ea7542ee210e6957427a0aa81 (diff) | |
countless changes
Diffstat (limited to 'src/fetch_src.cc')
| -rw-r--r-- | src/fetch_src.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stdlib.h> -#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); } |
