Explorar o código

Fix debian meta package name

Maximilian Luz %!s(int64=5) %!d(string=hai) anos
pai
achega
1bea97789b
Modificáronse 2 ficheiros con 6 adicións e 5 borrados
  1. 2 2
      .github/workflows/debian_lts.yml
  2. 4 3
      pkg/debian/meta/mkdebian.sh

+ 2 - 2
.github/workflows/debian_lts.yml

@@ -8,7 +8,7 @@ name: Debian LTS
 env:
   GPG_KEY_ID: 56C464BAAC421453
   KERNEL_VERSION: 4.19.131
-  KERNEL_REVISION: 2
+  KERNEL_REVISION: 3
   LOCALVERSION: -surface-lts
   MAINLINE_REPO: git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack
   MAINLINE_BRANCH: cod/mainline
@@ -98,7 +98,7 @@ jobs:
     - name: Build meta-package
       run: |
         cd pkg/debian/meta
-        ./mkdebian.sh $(make -C ../kernel-lts/linux -s kernelrelease) ${KERNEL_REVISION}
+        ./mkdebian.sh $(make -C ../kernel-lts/linux -s kernelrelease) ${KERNEL_REVISION} lts
         dpkg-buildpackage -b
 
     - name: Prepare release

+ 4 - 3
pkg/debian/meta/mkdebian.sh

@@ -2,18 +2,19 @@
 
 kernelrelease="${1}"
 pkgrevision="${2}"
+suffix="${3:+-${3}}"
 
 distribution="unstable"
 debarch="amd64"
 debcompat="10"
-sourcename="linux-surface"
+sourcename="linux-surface${suffix}"
 maintainer="surfacebot <surfacebot@users.noreply.github.com>"
 pkgversion="${kernelrelease}-${pkgrevision}"
 
-image_pkgname="linux-image-surface"
+image_pkgname="linux-image-surface${suffix}"
 image_pkgname_actual="linux-image-${kernelrelease}"
 
-headers_pkgname="linux-headers-surface"
+headers_pkgname="linux-headers-surface${suffix}"
 headers_pkgname_actual="linux-headers-${kernelrelease}"