diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-07-09 20:02:47 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-07-10 10:08:20 +0200 |
commit | 73b3179a5375d3fe7a58b5686446dddd3a14a734 (patch) | |
tree | 3bf783fdeb318a710ca30974cd4cc360d1863116 /mkosi.conf.d/10-opensuse | |
parent | man: fix typo in unit options section (diff) | |
download | systemd-73b3179a5375d3fe7a58b5686446dddd3a14a734.tar.xz systemd-73b3179a5375d3fe7a58b5686446dddd3a14a734.zip |
mkosi: Check for configured build directory if WIPE=1
Otherwise trying to use --wipe might fail if the build directory
has not been configured but is not empty either.
Diffstat (limited to 'mkosi.conf.d/10-opensuse')
-rwxr-xr-x | mkosi.conf.d/10-opensuse/mkosi.build.chroot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkosi.conf.d/10-opensuse/mkosi.build.chroot b/mkosi.conf.d/10-opensuse/mkosi.build.chroot index 67481d0b10..286fd582a6 100755 --- a/mkosi.conf.d/10-opensuse/mkosi.build.chroot +++ b/mkosi.conf.d/10-opensuse/mkosi.build.chroot @@ -63,7 +63,7 @@ if [[ -z "${MKOSI_LDFLAGS// }" ]]; then fi MKOSI_MESON_OPTIONS="-D mode=developer -D b_sanitize=${SANITIZERS:-none}" -if ((WIPE)); then +if ((WIPE)) && [[ -d "$BUILDDIR/meson-private" ]]; then MKOSI_MESON_OPTIONS="$MKOSI_MESON_OPTIONS --wipe" fi |