]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- skip subshell because i can
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 18 Oct 2007 20:48:56 +0000 (20:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.397

rpm.macros

index de51d80273379afa6cc543a903aa8cad187c022b..5ba4822a217b6fb4f2ad57a9e8945822d030350b 100644 (file)
@@ -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; \
This page took 0.055502 seconds and 4 git commands to generate.