From f349b8133b949dee1721081d9fbc80cc43327d15 Mon Sep 17 00:00:00 2001 From: Denis Kirjanov Date: Mar 18 2022 15:08:26 +0000 Subject: Revert "rpm/kernel-source.spec.in: call fdupes per subpackage" This reverts commit 1da843983718d4cfdd652a76e428abee98e37450. --- diff --git a/rpm/kernel-source.spec.in b/rpm/kernel-source.spec.in index bbbf9dc..d7b3f14 100644 --- a/rpm/kernel-source.spec.in +++ b/rpm/kernel-source.spec.in @@ -224,8 +224,6 @@ sed -ie 's,/lib/modules/,%{kernel_module_directory}/,' linux-%kernelrelease%vari cd linux-%kernelrelease-vanilla %_sourcedir/apply-patches --vanilla %_sourcedir/series.conf %my_builddir %symbols rm -f $(find . -name ".gitignore") -# Hardlink duplicate files automatically (from package fdupes). -%fdupes $PWD cd .. %endif @@ -237,10 +235,11 @@ rm -f $(find . -name ".gitignore") if [ -f %_sourcedir/localversion ] ; then cat %_sourcedir/localversion > localversion fi -# Hardlink duplicate files automatically (from package fdupes). -%fdupes $PWD cd .. %endif + +# Hardlink duplicate files automatically (from package fdupes). +%fdupes %{buildroot} popd %if ! %vanilla_only