From 0f82e2800e32c075e764d52daa2c08441ae45f48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 23 Aug 2005 18:32:05 +0000 Subject: [PATCH] - allow additional dirs to wipe .py files in %py_postclean Changed files: rpm.macros -> 1.234 --- rpm.macros | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm.macros b/rpm.macros index 1ec9bcc..b0ebbcb 100644 --- a/rpm.macros +++ b/rpm.macros @@ -508,7 +508,7 @@ done \ # remove python sources, so that check-files won't complain # (idea by glen pld-linux org) %py_postclean() \ -for d in %{py_sitescriptdir} %{py_sitedir}; do \ +for d in %{py_sitescriptdir} %{py_sitedir} %*; do \ [ ! -d "$RPM_BUILD_ROOT$d" ] || find "$RPM_BUILD_ROOT$d" -name '*.py' -print0 | xargs -0r -l512 rm;\ done \ %{nil} -- 2.44.0