]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- fix broken %py_postclean macro (missing backslash), optimize it for less rm calls
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 27 May 2005 08:14:34 +0000 (08:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.219

rpm.macros

index 7cb84109af92441f238618083e4e7a6d96924cdb..6ef7f8f3054deb4759b04ddcaf784a3a2eec564a 100644 (file)
@@ -388,7 +388,7 @@ fi \
 # Update desktop MIME database
 # requries: desktop-file-utils
 #
-%update_desktop_database_post() {{\
+%update_desktop_database_post() {{ \
        umask 022; \
        /usr/bin/update-desktop-database; \
 }}
@@ -503,7 +503,7 @@ done \
 # (idea by glen <at> pld-linux <dot> org)
 %py_postclean() \
 for d in %{py_sitescriptdir} %{py_sitedir}; do \
- [ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' -exec rm {} \; ;\
+ [ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' -print0 | xargs -0r -l512 rm;\
 done \
 %{nil}
 
This page took 0.050129 seconds and 4 git commands to generate.