From: Elan Ruusamäe Date: Thu, 18 Oct 2007 20:48:56 +0000 (+0000) Subject: - skip subshell because i can X-Git-Tag: auto/ac/rpm-build-macros-1_398-1~1 X-Git-Url: https://git.pld-linux.org/?p=packages%2Frpm.git;a=commitdiff_plain;h=455bd3f172176f6e990b3218e458c0ff933d7277 - skip subshell because i can Changed files: rpm.macros -> 1.397 --- diff --git a/rpm.macros b/rpm.macros index de51d80..5ba4822 100644 --- a/rpm.macros +++ b/rpm.macros @@ -689,7 +689,7 @@ fi \ %__spec_install_post_py_hardlink {\ %{!?no_install_post_py_hardlink: __spec_install_post_py_hardlink() { \ [ ! -d "$RPM_BUILD_ROOT" ] || find "$RPM_BUILD_ROOT" -name '*.pyc' | while read a; do \ - b="$(echo $a|sed -e 's/.pyc$/.pyo/')"; \ + b="${a%.pyc}.pyo"; \ if cmp -s "$a" "$b"; then \ ln -f "$a" "$b"; \ fi; \