]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- fix %install_kernel_modules - local: can only be used in a function auto/th/rpm-build-macros-1_498-1
authorsparky <sparky@pld-linux.org>
Wed, 3 Dec 2008 22:58:34 +0000 (22:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.501

rpm.macros

index 7af014527f529a920426d75aad467ee9a2485646..b9d0a11f42aa31568aef9adec25abd8c1acfdfde 100644 (file)
@@ -1428,6 +1428,7 @@ compile %{*}\
 %define KernelD $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}                     \
 %define ModprobeD $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver} \
                                                                                                                                        \
+__install_kernel_modules() {                                                                           \
 local cfgs='%{?with_dist_kernel:%{?with_smp: smp}%{?with_up: up}}%{!?with_dist_kernel: nondist}' \
                                                                                                                                        \
 for MODULE in {%{-m*},}; do                                                                                    \
@@ -1442,6 +1443,8 @@ for MODULE in {%{-m*},}; do                                                                                       \
                        >> %{ModprobeD}$suf/%{-n*}.conf}                                                \
        done                                                                                                                    \
 done                                                                                                                           \
+}                                                                                                                                      \
+__install_kernel_modules                                                                                       \
 %{nil}
 
 # patchset macros
This page took 0.032631 seconds and 4 git commands to generate.