[packages/adapter: 161/631] - simplified %setup. #2
glen
glen at pld-linux.org
Mon Sep 12 19:47:57 CEST 2016
commit 106904364447be5b37c78a594c0eb6cbf289b3e3
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Apr 15 20:17:57 2005 +0000
- simplified %setup. #2
Changed files:
adapter.awk -> 1.156
adapter.awk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 0c38cea..cfc98ab 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -168,8 +168,8 @@ defattr == 1 {
sub(/^%setup/, "%setup -q")
}
- if (/^%setup -q -n %{name}-%{version}$/) {
- $0 = "%setup"
+ if (/^%setup/ && /-n %{name}-%{version}( |$)/) {
+ sub(/ -n %{name}-%{version}/, "")
}
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list