summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-22 14:15:43 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-22 14:15:43 -0800
commite20df85cf8579aaa9cf07d59efc453d5837a7598 (patch)
treeb8e56be1d0018078e4f2a8b69407c62abbd7f4d6
parent28992a12fea60af70285db931f4a41c932f31ae3 (diff)
downloadportage-e20df85cf8579aaa9cf07d59efc453d5837a7598.tar.gz
portage-e20df85cf8579aaa9cf07d59efc453d5837a7598.tar.bz2
portage-e20df85cf8579aaa9cf07d59efc453d5837a7598.zip
ebuild-helpers/new*: QA warn for extra args
-rwxr-xr-xbin/ebuild-helpers/newbin5
-rwxr-xr-xbin/ebuild-helpers/newconfd5
-rwxr-xr-xbin/ebuild-helpers/newdoc5
-rwxr-xr-xbin/ebuild-helpers/newenvd5
-rwxr-xr-xbin/ebuild-helpers/newexe5
-rwxr-xr-xbin/ebuild-helpers/newinitd5
-rwxr-xr-xbin/ebuild-helpers/newins3
-rwxr-xr-xbin/ebuild-helpers/newlib.a5
-rwxr-xr-xbin/ebuild-helpers/newlib.so5
-rwxr-xr-xbin/ebuild-helpers/newman5
-rwxr-xr-xbin/ebuild-helpers/newsbin5
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}"