[packages/composer] cleanup backups after patching
glen
glen at pld-linux.org
Fri Nov 28 16:59:28 CET 2014
commit e3a33933a4c33c27102d709dbfa2fdccf6d4448c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Nov 28 17:59:18 2014 +0200
cleanup backups after patching
composer.spec | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/composer.spec b/composer.spec
index 1cdf49f..117b42c 100644
--- a/composer.spec
+++ b/composer.spec
@@ -103,6 +103,9 @@ mv composer-*/* .
mv composer.lock{,.disabled}
%{__sed} -i -e '1s,^#!.*env php,#!%{__php},' bin/*
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
%build
%if %{with bootstrap}
composer='%{__php} %{SOURCE1}'
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/composer.git/commitdiff/e3a33933a4c33c27102d709dbfa2fdccf6d4448c
More information about the pld-cvs-commit
mailing list