[vlc-devel] [PATCH] snap: make sure we don't fail with a missing git version

Steve Lhomme robux4 at ycbcr.xyz
Tue Jun 16 07:49:07 CEST 2020


This fixes CI failure on branches with a lot of patches.
---
 extras/package/snap/snapcraft.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/package/snap/snapcraft.yaml b/extras/package/snap/snapcraft.yaml
index 8f71f63c6f18..7ee9954cf33a 100644
--- a/extras/package/snap/snapcraft.yaml
+++ b/extras/package/snap/snapcraft.yaml
@@ -95,7 +95,7 @@ parts:
           --disable-wayland \
           --enable-merge-ffmpeg
       make -j $(getconf _NPROCESSORS_ONLN)
-      echo $(git describe HEAD) > $SNAPCRAFT_STAGE/version
+      echo $(git describe --always HEAD) > $SNAPCRAFT_STAGE/version
       make install
       sed -i 's|Icon=vlc|Icon=/usr/share/icons/hicolor/256x256/apps/vlc\.png|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/vlc.desktop
       sed -i 's|TryExec=.*|TryExec=/snap/bin/vlc|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/vlc.desktop
-- 
2.26.2



More information about the vlc-devel mailing list