]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- gzip kernel modules only if $RPM_BUILD_ROOT/lib/modules exists (avoids
authorMichal Moskal <michal@moskal.me>
Fri, 11 Oct 2002 15:31:54 +0000 (15:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  error message)

Changed files:
    rpm.macros -> 1.83

rpm.macros

index b7eadbf7e6b602f12e6f331e0f7ebacb4cc5c01b..c48537b8effc8e5413df2af6d15a957d2f97ef6a 100644 (file)
@@ -203,7 +203,10 @@ echo "Compress man and info pages."; \
 echo "Compress kernel modules if any."; \
 %{!?no_install_post_compress_modules: \
     %{?verbose:set -x;} \
-    find $RPM_BUILD_ROOT/lib/modules -name \*.o -print | xargs -r %{__gzip} -9nf; \
+    if test -d $RPM_BUILD_ROOT/lib/modules ; then \
+       find $RPM_BUILD_ROOT/lib/modules -name \*.o -print | \
+       xargs -r %{__gzip} -9nf; \
+    fi; \
 } }
 
 %_source_payload        w9.gzdio
This page took 0.619973 seconds and 4 git commands to generate.