aboutsummaryrefslogtreecommitdiff
path: root/src/fetch_src.cc
blob: 27a4b239d60a20cca8d4739b47eac0314701e521 (plain)
1
2
3
4
5
6
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); }
}