diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-07-17 00:18:01 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-07-17 00:18:01 +0000 |
| commit | 7019724ab5c818e18fb5ee61b6b14487c47da3ec (patch) | |
| tree | 0a7d60563c56a75fcfe7ecdd66f21bdc420fc1fa /src/fetch.c | |
| parent | 43e35385f741a3c48cf667fd55bc1175d1d2b927 (diff) | |
more features but memory leak
Diffstat (limited to 'src/fetch.c')
| -rw-r--r-- | src/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c index 87c632d..3792a5e 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -51,7 +51,7 @@ bool fetch(package_t *pkg) { if (pkg->url.data == NULL || pkg->src.data == NULL) { - log_warn("invalid pkg: url or src is NULL"); + if (flags.verbose) log_warn("invalid pkg: url or src is NULL"); return false; } @@ -97,7 +97,7 @@ bool fetch(package_t *pkg) { waitpid(pid, &status, 0); bool result = (WEXITSTATUS(status) == 0); - if (!result) { log_warn("git clone failed"); } + if (!result) { log_error("git clone failed"); } return result; } |
