From 0c2842fcf2337431eee39f22ef5de764e8d1d76b Mon Sep 17 00:00:00 2001 From: Nathan Pratta Teodosio Date: Tue, 7 Oct 2025 12:29:29 +0200 Subject: Only remove sources if in Launchpad. --- snapcraft.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index cc925e8..714a574 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -266,11 +266,12 @@ parts: > $CRAFT_PART_INSTALL/man1/chrome.1 gzip -9n $CRAFT_PART_INSTALL/man1/chrome.1 - # Builder gets out of space because of the duplication of + # Launchpad's builder gets out of space because of the duplication of # SRC->BUILD. Remove SRC then. # https://forum.snapcraft.io/t/duplicated-directories-src-and-build-are-a-space-issue/44618 - # Delete this workaround if trying to build locally iteratively. - rm -rf "$CRAFT_PART_SRC" + if snap info snapcraft | grep 'tracking: *launchpad-buildd'; then + rm -rf "$CRAFT_PART_SRC" + fi # Find all patches that don't apply anymore before running Quilt, as it # stops at the 1st unappliable and doesn't tells us how the file looks. -- cgit v1.2.3