[neon/snap-packaging/kde-qt6-core-sdk/core24] /: Ensure config.summary doesn't exist before copy.

Scarlett Moore null at kde.org
Tue Sep 24 12:56:42 BST 2024


Git commit f269f8621a539770e3ec531749512ca365f76500 by Scarlett Moore.
Committed on 24/09/2024 at 11:55.
Pushed by scarlettmoore into branch 'core24'.

Ensure config.summary doesn't exist before copy.

M  +2    -1    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kde-qt6-core-sdk/-/commit/f269f8621a539770e3ec531749512ca365f76500

diff --git a/snapcraft.yaml b/snapcraft.yaml
index b3cf169..d8dce66 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -253,7 +253,8 @@ parts:
     override-build: |
       craftctl default
       mkdir -p $CRAFT_PART_INSTALL/etc/$CRAFT_PART_NAME
-      cp $CRAFT_PART_BUILD/config.summary $CRAFT_PART_INSTALL/etc/$CRAFT_PART_NAME
+      rm  $CRAFT_PART_INSTALL/etc/$CRAFT_PART_NAME/config.summary | true
+      cp $CRAFT_PART_BUILD/config.summary $CRAFT_PART_INSTALL/etc/$CRAFT_PART_NAME/
 
   debs:
     after: [qt6]


More information about the Neon-commits mailing list