]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1548: CI: check in sound-dummy module may throw an error v9.0.1548
authorChristian Brabandt <cb@256bit.org>
Sat, 13 May 2023 10:54:47 +0000 (11:54 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 May 2023 10:54:47 +0000 (11:54 +0100)
Problem:    CI: check in sound-dummy module may throw an error.
Solution:   Check whether apt-cache can show the package description.
            (Christian Brabandt, closes #12390)

.github/workflows/ci.yml
src/version.c

index ca288aea84a78ffd6cb2d94a12f01a8e12255f0c..40932b7f4a584584dec2e9646c3ffb11346f0ef9 100644 (file)
@@ -180,8 +180,8 @@ jobs:
           DEST_DIR: ${{ env.TMPDIR }}/linux-modules-extra-${{ env.LINUX_VERSION }}
         run: |
           cd /lib/modules/${{ env.LINUX_VERSION }}
-          if [ sudo apt-get install -d -y linux-modules-extra-${{ env.LINUX_VERSION }} 2>&1 | $(grep "Unable to locate package ") ]; then
-          echo "Download of " linux-modules-extra-${{ env.LINUX_VERSION }} "failed continue anyway" exit 0
+          if apt-cache show linux-modules-extra-${{ env.LINUX_VERSION }} >/dev/null 2>&1 ; then
+          echo "Module " linux-modules-extra-${{ env.LINUX_VERSION }} "doesn't seem to exist, continue anyway"; exit 0
           else
           sudo apt-get install -d -y linux-modules-extra-${{ env.LINUX_VERSION }}
           sudo dpkg -x /var/cache/apt/archives/linux-modules-extra-${{ env.LINUX_VERSION }}*.deb "${DEST_DIR}"
index 20a6e99d323bfdf5052e63275b646a40dd946b1e..a3c9453d19d959be59f75932baff9b9ab670f44a 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1548,
 /**/
     1547,
 /**/