SOURCES: rpm.macros - skip subshell because i can

glen glen at pld-linux.org
Thu Oct 18 22:49:01 CEST 2007


Author: glen                         Date: Thu Oct 18 20:49:01 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- skip subshell because i can

---- Files affected:
SOURCES:
   rpm.macros (1.396 -> 1.397) 

---- Diffs:

================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.396 SOURCES/rpm.macros:1.397
--- SOURCES/rpm.macros:1.396	Wed Oct 10 22:13:59 2007
+++ SOURCES/rpm.macros	Thu Oct 18 22:48:56 2007
@@ -689,7 +689,7 @@
 %__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; \
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.396&r2=1.397&f=u



More information about the pld-cvs-commit mailing list