From: mis Date: Mon, 25 Sep 2000 08:21:48 +0000 (+0000) Subject: - __spec_install_post_compress_docs: don't (un)compress non-existing files X-Git-Tag: rpm-3_0_5-12~7 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=0fe9bec8563c8053cb6176c024a7307d888b51d9;p=packages%2Frpm.git - __spec_install_post_compress_docs: don't (un)compress non-existing files Changed files: rpm.macros -> 1.30 --- 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; \ }