]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
UBUNTU: [Debian]: dkms-build: Avoid executing post-processor scripts twice
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 26 Sep 2019 15:59:07 +0000 (10:59 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 26 Sep 2019 19:36:58 +0000 (14:36 -0500)
commit00219945e167fea08105395c0673956e17823e3e
treeaca567aec6a79aaa6e9d9e97e1ad85cea4dc1306
parentc6a2354ef8c5bf42f4ce0885085a27ac1bfccfa6
UBUNTU: [Debian]: dkms-build: Avoid executing post-processor scripts twice

BugLink: https://bugs.launchpad.net/bugs/1840704
The regex to generate dkms_build_generic from dkms_build_specific
will return the same script name if the package name does not end
with a dash followed by digits. In this case the script will be
executed twice.

Fix this by returning an empty string if the regex does not match
and skipping execution if the dkms build script name is empty.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
debian/scripts/dkms-build