From e20df85cf8579aaa9cf07d59efc453d5837a7598 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 22 Dec 2011 14:15:43 -0800 Subject: ebuild-helpers/new*: QA warn for extra args --- bin/ebuild-helpers/newbin | 5 ++++- bin/ebuild-helpers/newconfd | 5 ++++- bin/ebuild-helpers/newdoc | 5 ++++- bin/ebuild-helpers/newenvd | 5 ++++- bin/ebuild-helpers/newexe | 5 ++++- bin/ebuild-helpers/newinitd | 5 ++++- bin/ebuild-helpers/newins | 3 +++ bin/ebuild-helpers/newlib.a | 5 ++++- bin/ebuild-helpers/newlib.so | 5 ++++- bin/ebuild-helpers/newman | 5 ++++- bin/ebuild-helpers/newsbin | 5 ++++- 11 files changed, 43 insertions(+), 10 deletions(-) diff --git a/bin/ebuild-helpers/newbin b/bin/ebuild-helpers/newbin index 30f19b062..bf9874472 100755 --- a/bin/ebuild-helpers/newbin +++ b/bin/ebuild-helpers/newbin @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec dobin "${T}/${2}" diff --git a/bin/ebuild-helpers/newconfd b/bin/ebuild-helpers/newconfd index 5752cfa7b..fa3710d8f 100755 --- a/bin/ebuild-helpers/newconfd +++ b/bin/ebuild-helpers/newconfd @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec doconfd "${T}/${2}" diff --git a/bin/ebuild-helpers/newdoc b/bin/ebuild-helpers/newdoc index f97ce0d67..df6fb1d58 100755 --- a/bin/ebuild-helpers/newdoc +++ b/bin/ebuild-helpers/newdoc @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec dodoc "${T}/${2}" diff --git a/bin/ebuild-helpers/newenvd b/bin/ebuild-helpers/newenvd index 83c556e7e..c54af0520 100755 --- a/bin/ebuild-helpers/newenvd +++ b/bin/ebuild-helpers/newenvd @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec doenvd "${T}/${2}" diff --git a/bin/ebuild-helpers/newexe b/bin/ebuild-helpers/newexe index 92dbe9f07..9bcf64b31 100755 --- a/bin/ebuild-helpers/newexe +++ b/bin/ebuild-helpers/newexe @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec doexe "${T}/${2}" diff --git a/bin/ebuild-helpers/newinitd b/bin/ebuild-helpers/newinitd index fc6003ac2..03bbe68a7 100755 --- a/bin/ebuild-helpers/newinitd +++ b/bin/ebuild-helpers/newinitd @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec doinitd "${T}/${2}" diff --git a/bin/ebuild-helpers/newins b/bin/ebuild-helpers/newins index 065477f47..adf2d809e 100755 --- a/bin/ebuild-helpers/newins +++ b/bin/ebuild-helpers/newins @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" || exit $? case "$EAPI" in 0|1|2|3|3_pre2) diff --git a/bin/ebuild-helpers/newlib.a b/bin/ebuild-helpers/newlib.a index eef4104be..7ff819547 100755 --- a/bin/ebuild-helpers/newlib.a +++ b/bin/ebuild-helpers/newlib.a @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec dolib.a "${T}/${2}" diff --git a/bin/ebuild-helpers/newlib.so b/bin/ebuild-helpers/newlib.so index c8696f330..fd4c097d7 100755 --- a/bin/ebuild-helpers/newlib.so +++ b/bin/ebuild-helpers/newlib.so @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec dolib.so "${T}/${2}" diff --git a/bin/ebuild-helpers/newman b/bin/ebuild-helpers/newman index ffb8a2de1..889e0f985 100755 --- a/bin/ebuild-helpers/newman +++ b/bin/ebuild-helpers/newman @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec doman "${T}/${2}" diff --git a/bin/ebuild-helpers/newsbin b/bin/ebuild-helpers/newsbin index 82242aa95..9df0af275 100755 --- a/bin/ebuild-helpers/newsbin +++ b/bin/ebuild-helpers/newsbin @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -14,6 +14,9 @@ if [ ! -e "$1" ] ; then exit 1 fi +(($#>2)) && \ + eqawarn "QA Notice: ${0##*/} called with more than 2 arguments: ${@:3}" + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec dosbin "${T}/${2}" -- cgit v1.2.3-1-g7c22