Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/ebuild-helpers/
Date: Thu, 22 Dec 2011 22:17:11
Message-Id: e20df85cf8579aaa9cf07d59efc453d5837a7598.zmedico@gentoo
1 commit: e20df85cf8579aaa9cf07d59efc453d5837a7598
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 22 22:15:43 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 22 22:15:43 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e20df85c
7
8 ebuild-helpers/new*: QA warn for extra args
9
10 ---
11 bin/ebuild-helpers/newbin | 5 ++++-
12 bin/ebuild-helpers/newconfd | 5 ++++-
13 bin/ebuild-helpers/newdoc | 5 ++++-
14 bin/ebuild-helpers/newenvd | 5 ++++-
15 bin/ebuild-helpers/newexe | 5 ++++-
16 bin/ebuild-helpers/newinitd | 5 ++++-
17 bin/ebuild-helpers/newins | 3 +++
18 bin/ebuild-helpers/newlib.a | 5 ++++-
19 bin/ebuild-helpers/newlib.so | 5 ++++-
20 bin/ebuild-helpers/newman | 5 ++++-
21 bin/ebuild-helpers/newsbin | 5 ++++-
22 11 files changed, 43 insertions(+), 10 deletions(-)
23
24 diff --git a/bin/ebuild-helpers/newbin b/bin/ebuild-helpers/newbin
25 index 30f19b0..bf98744 100755
26 --- a/bin/ebuild-helpers/newbin
27 +++ b/bin/ebuild-helpers/newbin
28 @@ -1,5 +1,5 @@
29 #!/bin/bash
30 -# Copyright 1999-2010 Gentoo Foundation
31 +# Copyright 1999-2011 Gentoo Foundation
32 # Distributed under the terms of the GNU General Public License v2
33
34 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
35 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
36 exit 1
37 fi
38
39 +(($#>2)) && \
40 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
41 +
42 rm -rf "${T}/${2}" && \
43 cp -f "${1}" "${T}/${2}" && \
44 exec dobin "${T}/${2}"
45
46 diff --git a/bin/ebuild-helpers/newconfd b/bin/ebuild-helpers/newconfd
47 index 5752cfa..fa3710d 100755
48 --- a/bin/ebuild-helpers/newconfd
49 +++ b/bin/ebuild-helpers/newconfd
50 @@ -1,5 +1,5 @@
51 #!/bin/bash
52 -# Copyright 1999-2010 Gentoo Foundation
53 +# Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55
56 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
57 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
58 exit 1
59 fi
60
61 +(($#>2)) && \
62 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
63 +
64 rm -rf "${T}/${2}" && \
65 cp -f "${1}" "${T}/${2}" && \
66 exec doconfd "${T}/${2}"
67
68 diff --git a/bin/ebuild-helpers/newdoc b/bin/ebuild-helpers/newdoc
69 index f97ce0d..df6fb1d 100755
70 --- a/bin/ebuild-helpers/newdoc
71 +++ b/bin/ebuild-helpers/newdoc
72 @@ -1,5 +1,5 @@
73 #!/bin/bash
74 -# Copyright 1999-2010 Gentoo Foundation
75 +# Copyright 1999-2011 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77
78 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
79 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
80 exit 1
81 fi
82
83 +(($#>2)) && \
84 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
85 +
86 rm -rf "${T}/${2}" && \
87 cp -f "${1}" "${T}/${2}" && \
88 exec dodoc "${T}/${2}"
89
90 diff --git a/bin/ebuild-helpers/newenvd b/bin/ebuild-helpers/newenvd
91 index 83c556e..c54af05 100755
92 --- a/bin/ebuild-helpers/newenvd
93 +++ b/bin/ebuild-helpers/newenvd
94 @@ -1,5 +1,5 @@
95 #!/bin/bash
96 -# Copyright 1999-2010 Gentoo Foundation
97 +# Copyright 1999-2011 Gentoo Foundation
98 # Distributed under the terms of the GNU General Public License v2
99
100 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
101 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
102 exit 1
103 fi
104
105 +(($#>2)) && \
106 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
107 +
108 rm -rf "${T}/${2}" && \
109 cp -f "${1}" "${T}/${2}" && \
110 exec doenvd "${T}/${2}"
111
112 diff --git a/bin/ebuild-helpers/newexe b/bin/ebuild-helpers/newexe
113 index 92dbe9f..9bcf64b 100755
114 --- a/bin/ebuild-helpers/newexe
115 +++ b/bin/ebuild-helpers/newexe
116 @@ -1,5 +1,5 @@
117 #!/bin/bash
118 -# Copyright 1999-2010 Gentoo Foundation
119 +# Copyright 1999-2011 Gentoo Foundation
120 # Distributed under the terms of the GNU General Public License v2
121
122 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
123 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
124 exit 1
125 fi
126
127 +(($#>2)) && \
128 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
129 +
130 rm -rf "${T}/${2}" && \
131 cp -f "${1}" "${T}/${2}" && \
132 exec doexe "${T}/${2}"
133
134 diff --git a/bin/ebuild-helpers/newinitd b/bin/ebuild-helpers/newinitd
135 index fc6003a..03bbe68 100755
136 --- a/bin/ebuild-helpers/newinitd
137 +++ b/bin/ebuild-helpers/newinitd
138 @@ -1,5 +1,5 @@
139 #!/bin/bash
140 -# Copyright 1999-2010 Gentoo Foundation
141 +# Copyright 1999-2011 Gentoo Foundation
142 # Distributed under the terms of the GNU General Public License v2
143
144 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
145 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
146 exit 1
147 fi
148
149 +(($#>2)) && \
150 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
151 +
152 rm -rf "${T}/${2}" && \
153 cp -f "${1}" "${T}/${2}" && \
154 exec doinitd "${T}/${2}"
155
156 diff --git a/bin/ebuild-helpers/newins b/bin/ebuild-helpers/newins
157 index 065477f..adf2d80 100755
158 --- a/bin/ebuild-helpers/newins
159 +++ b/bin/ebuild-helpers/newins
160 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
161 exit 1
162 fi
163
164 +(($#>2)) && \
165 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
166 +
167 rm -rf "${T}/${2}" || exit $?
168 case "$EAPI" in
169 0|1|2|3|3_pre2)
170
171 diff --git a/bin/ebuild-helpers/newlib.a b/bin/ebuild-helpers/newlib.a
172 index eef4104..7ff8195 100755
173 --- a/bin/ebuild-helpers/newlib.a
174 +++ b/bin/ebuild-helpers/newlib.a
175 @@ -1,5 +1,5 @@
176 #!/bin/bash
177 -# Copyright 1999-2010 Gentoo Foundation
178 +# Copyright 1999-2011 Gentoo Foundation
179 # Distributed under the terms of the GNU General Public License v2
180
181 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
182 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
183 exit 1
184 fi
185
186 +(($#>2)) && \
187 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
188 +
189 rm -rf "${T}/${2}" && \
190 cp -f "${1}" "${T}/${2}" && \
191 exec dolib.a "${T}/${2}"
192
193 diff --git a/bin/ebuild-helpers/newlib.so b/bin/ebuild-helpers/newlib.so
194 index c8696f3..fd4c097 100755
195 --- a/bin/ebuild-helpers/newlib.so
196 +++ b/bin/ebuild-helpers/newlib.so
197 @@ -1,5 +1,5 @@
198 #!/bin/bash
199 -# Copyright 1999-2010 Gentoo Foundation
200 +# Copyright 1999-2011 Gentoo Foundation
201 # Distributed under the terms of the GNU General Public License v2
202
203 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
204 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
205 exit 1
206 fi
207
208 +(($#>2)) && \
209 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
210 +
211 rm -rf "${T}/${2}" && \
212 cp -f "${1}" "${T}/${2}" && \
213 exec dolib.so "${T}/${2}"
214
215 diff --git a/bin/ebuild-helpers/newman b/bin/ebuild-helpers/newman
216 index ffb8a2d..889e0f9 100755
217 --- a/bin/ebuild-helpers/newman
218 +++ b/bin/ebuild-helpers/newman
219 @@ -1,5 +1,5 @@
220 #!/bin/bash
221 -# Copyright 1999-2010 Gentoo Foundation
222 +# Copyright 1999-2011 Gentoo Foundation
223 # Distributed under the terms of the GNU General Public License v2
224
225 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
226 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
227 exit 1
228 fi
229
230 +(($#>2)) && \
231 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
232 +
233 rm -rf "${T}/${2}" && \
234 cp -f "${1}" "${T}/${2}" && \
235 exec doman "${T}/${2}"
236
237 diff --git a/bin/ebuild-helpers/newsbin b/bin/ebuild-helpers/newsbin
238 index 82242aa..9df0af2 100755
239 --- a/bin/ebuild-helpers/newsbin
240 +++ b/bin/ebuild-helpers/newsbin
241 @@ -1,5 +1,5 @@
242 #!/bin/bash
243 -# Copyright 1999-2010 Gentoo Foundation
244 +# Copyright 1999-2011 Gentoo Foundation
245 # Distributed under the terms of the GNU General Public License v2
246
247 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
248 @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then
249 exit 1
250 fi
251
252 +(($#>2)) && \
253 + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}"
254 +
255 rm -rf "${T}/${2}" && \
256 cp -f "${1}" "${T}/${2}" && \
257 exec dosbin "${T}/${2}"