From: Paweł Sikora Date: Sun, 20 Feb 2005 20:16:43 +0000 (+0000) Subject: - py_hardlink fixed. X-Git-Tag: auto/th/rpm-4_4_1-0_2~2 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=d56b7e24d040749bfe654d7175f2a2a09b754d9a;p=packages%2Frpm-pld-macros.git - py_hardlink fixed. Changed files: rpm.macros -> 1.190 --- diff --git a/rpm.macros b/rpm.macros index 2a876eb..e109805 100644 --- a/rpm.macros +++ b/rpm.macros @@ -433,7 +433,7 @@ echo "Compress kernel modules if any."; \ # Hardlink binary identical .pyc and .pyo files # (idea by glen pld-linux org) %__spec_install_post_py_hardlink {\ -%{!?no_install_post_py_hardlink: +%{!?no_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/')"; \ if cmp -s "$a" "$b"; then \