From 6f8fca6963cfc70e9dfb30155c3276e9f5279c58 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sat, 22 Aug 2026 12:19:34 +0000 Subject: core: build: Only handle manifest when building Signed-off-by: Chloe M. --- core/build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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"); -- cgit v1.2.3