From cfc1f4e06abaf5107d217dfebe6d91cb3e504de8 Mon Sep 17 00:00:00 2001 From: mis Date: Mon, 25 Sep 2000 08:21:48 +0000 Subject: [PATCH] - __spec_install_post_compress_docs: don't (un)compress non-existing files Changed files: rpm.macros -> 1.30 --- rpm.macros | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpm.macros b/rpm.macros index deb640f..08f603e 100644 --- a/rpm.macros +++ b/rpm.macros @@ -111,9 +111,9 @@ echo "Compress man and info pages."; \ %{?verbose:set -x;} \ for i in /usr/share/man /usr/X11R6/man /usr/share/info; do \ if [ -d "$RPM_BUILD_ROOT$i" ]; then \ - find "$RPM_BUILD_ROOT$i" -name \*.bz2 -print | xargs %{__bzip2} -df; \ - find "$RPM_BUILD_ROOT$i" -name \*.gz -print | xargs %{__gzip} -dnf; \ - find "$RPM_BUILD_ROOT$i" -type f -print | xargs %{__gzip} -9nf; \ + find "$RPM_BUILD_ROOT$i" -name \*.bz2 -print | xargs -r %{__bzip2} -df; \ + find "$RPM_BUILD_ROOT$i" -name \*.gz -print | xargs -r %{__gzip} -dnf; \ + find "$RPM_BUILD_ROOT$i" -type f -print | xargs -r %{__gzip} -9nf; \ fi; \ done; \ } -- 2.44.0