From dd53be813be3f4c8367e3c3e202c8911b94402b3 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Tue, 22 Oct 2019 11:00:32 -0400 Subject: [PATCH] Use the dist tag for the hard link instead of a wider fc* tag More generic for other dist-tags --- kernel.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index ac0c125ed..acb41159b 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1907,7 +1907,7 @@ if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ - hardlink -c /usr/src/kernels/*.fc*.*/$f $f\ + hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f\ done)\ fi\ %{nil}