[packages/adapter: 160/631] - simplified %setup
glen
glen at pld-linux.org
Mon Sep 12 19:47:52 CEST 2016
commit e780ff0a1d432ffa199931224f76532ac94d09be
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Apr 15 20:16:22 2005 +0000
- simplified %setup
Changed files:
adapter.awk -> 1.155
adapter.awk | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 229b497..0c38cea 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -164,8 +164,13 @@ defattr == 1 {
preamble = 0
# Add '-q' to %setup
- if (/^%setup/ && !/-q/)
+ if (/^%setup/ && !/-q/) {
sub(/^%setup/, "%setup -q")
+ }
+
+ if (/^%setup -q -n %{name}-%{version}$/) {
+ $0 = "%setup"
+ }
}
##########
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list