diff options
| author | Chloe M. <chloe@aptel.org> | 2026-08-22 12:19:34 +0000 |
|---|---|---|
| committer | Chloe M. <chloe@aptel.org> | 2026-08-22 12:19:34 +0000 |
| commit | 6f8fca6963cfc70e9dfb30155c3276e9f5279c58 (patch) | |
| tree | 2d969def19405ac9bbef2e7da07d0ee1a6ba6564 /core | |
| parent | 07e0d9dbb6547453078557fcb62a89dbdd0d5fd8 (diff) | |
core: build: Only handle manifest when building
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'core')
| -rw-r--r-- | core/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/build.c b/core/build.c index 0752490..4bf412d 100644 --- a/core/build.c +++ b/core/build.c @@ -521,7 +521,7 @@ bop_build_dir(const char *dirpath, build_op_t bop) * we are to read it build based on it. */ snprintf(pathbuf, sizeof(pathbuf), "%s/.bop/manifest.hash", dirpath); - if (access(pathbuf, F_OK) != 0) { + if (access(pathbuf, F_OK) != 0 && bop != BUILD_OP_CLEAN) { hashfd = open(pathbuf, O_RDWR | O_CREAT, 0666); if (hashfd < 0) { perror("open"); @@ -532,7 +532,7 @@ bop_build_dir(const char *dirpath, build_op_t bop) params.hashfd = hashfd; snprintf(countbuf, sizeof(countbuf), "%zu\n", params.n_file); write(hashfd, countbuf, strlen(countbuf)); - } else { + } else if (bop != BUILD_OP_CLEAN) { hashfd = open(pathbuf, O_RDWR); if (hashfd < 0) { perror("open"); |
