diff options
| author | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-01-21 23:56:39 -0500 |
|---|---|---|
| committer | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-01-21 23:56:39 -0500 |
| commit | 8926f839720471cc86fd4f7c6371d63b8f71b91d (patch) | |
| tree | c14523954085f7b6c428a488f81bfb645dcd2c83 /src/fetch_src.cc | |
| parent | 8fc3b1f6cd1062e15c0aed60a110fb91143cd801 (diff) | |
initial commit
Diffstat (limited to 'src/fetch_src.cc')
| -rw-r--r-- | src/fetch_src.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fetch_src.cc b/src/fetch_src.cc new file mode 100644 index 0000000..27a4b23 --- /dev/null +++ b/src/fetch_src.cc @@ -0,0 +1,7 @@ +#include <stdlib.h> +#include "fetch_git.cc" + +void fetch_src(Pkg pkg) { + if (fs::exists(pkg.src)) { fs::remove_all(pkg.src); } + if (fetch_git(pkg) == 0) { return; } else { exit(EXIT_FAILURE); } +} |
