[neon/snap-packaging/plasma-desktop-session-snap/ci-prototype] debian: try with the if else condition

Carlos De Maine null at kde.org
Fri Apr 26 03:06:39 BST 2024


Git commit 24a08d9c5c8777ad6866a83d75568a105da9d211 by Carlos De Maine.
Committed on 26/04/2024 at 02:06.
Pushed by carlosdem into branch 'ci-prototype'.

try with the if else condition

M  +7    -4    debian/snap-snapcraft-lxc.yml

https://invent.kde.org/neon/snap-packaging/plasma-desktop-session-snap/-/commit/24a08d9c5c8777ad6866a83d75568a105da9d211

diff --git a/debian/snap-snapcraft-lxc.yml b/debian/snap-snapcraft-lxc.yml
index bdcd70e..367e2e7 100644
--- a/debian/snap-snapcraft-lxc.yml
+++ b/debian/snap-snapcraft-lxc.yml
@@ -10,9 +10,12 @@ snap_snapcraft_lxc:
     default: true
   script:
     - echo building $KDE_SNAP_MODULE_NAME with --use-lxd ...
-    - export SNAPCRAFT_BUILD_ENVIRONMENT=lxd
-    - ls -lsa
-    - snapcraft --version
     - snapcraft clean
-    - snapcraft  --verbose
+     - >
+        if [ "$KDE_SNAP_MODULE_NAME" == "plasma-desktop-session-snap" ]; then
+          export SNAPCRAFT_BUILD_ENVIRONMENT=lxd
+          snapcraft  lxd --verbose
+        else
+          snapcraft  --use-lxd --verbosity=verbose
+        fi
   interruptible: true


More information about the Neon-commits mailing list