aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-03-08 12:28:57 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-03-08 12:28:57 +0000
commit07aabe90911d8c18f8190fa85d144526769ed0c9 (patch)
tree29b5247e55cdde356e9f7b8193656a99a7ad7259
parent21db66f85820241411d397c92b0916c8ada57dfd (diff)
downloadpaludis-07aabe90911d8c18f8190fa85d144526769ed0c9.tar.gz
paludis-07aabe90911d8c18f8190fa85d144526769ed0c9.tar.xz
Remove bash-side RESTRICT handling, and implement RESTRICT=test in C++.
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_infovars.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_init.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_initmisc.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_initrm.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_killold.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_killoldrm.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_loadenv.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_saveenv.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_tidyup.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_config.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_info.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_postinst.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_postrm.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_preinst.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_prerm.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_pretend.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/pkg_setup.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/src_compile.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/src_install.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/src_test.bash4
-rw-r--r--paludis/repositories/e/ebuild/0/src_unpack.bash4
-rw-r--r--paludis/repositories/e/ebuild/1/src_compile.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_init.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_config.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_info.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_compile.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_configure.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_install.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_prepare.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_test.bash4
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_unpack.bash4
-rw-r--r--paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash4
-rw-r--r--paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash4
-rw-r--r--paludis/repositories/e/ebuild_entries.cc9
54 files changed, 61 insertions, 160 deletions
diff --git a/paludis/repositories/e/ebuild/0/builtin_infovars.bash b/paludis/repositories/e/ebuild/0/builtin_infovars.bash
index e21bbaf..1c7c429 100644
--- a/paludis/repositories/e/ebuild/0/builtin_infovars.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_infovars.bash
@@ -26,9 +26,7 @@ builtin_infovars()
ebuild_f_infovars()
{
- if hasq "infovars" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_infovars (RESTRICT)"
- elif hasq "infovars" ${SKIP_FUNCTIONS} ; then
+ if hasq "infovars" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_infovars (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_builtin_infovars ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/builtin_init.bash b/paludis/repositories/e/ebuild/0/builtin_init.bash
index 855ce68..0dea0e2 100644
--- a/paludis/repositories/e/ebuild/0/builtin_init.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_init.bash
@@ -83,9 +83,7 @@ builtin_init()
ebuild_f_init()
{
- if hasq "init" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_init (RESTRICT)"
- elif hasq "init" ${SKIP_FUNCTIONS} ; then
+ if hasq "init" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_init (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_init"
diff --git a/paludis/repositories/e/ebuild/0/builtin_initmisc.bash b/paludis/repositories/e/ebuild/0/builtin_initmisc.bash
index 274d94a..2386de8 100644
--- a/paludis/repositories/e/ebuild/0/builtin_initmisc.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_initmisc.bash
@@ -69,9 +69,7 @@ builtin_initmisc()
ebuild_f_initmisc()
{
- if hasq "initmisc" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_initmisc (RESTRICT)"
- elif hasq "initmisc" ${SKIP_FUNCTIONS} ; then
+ if hasq "initmisc" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_initmisc (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_initmisc"
diff --git a/paludis/repositories/e/ebuild/0/builtin_initrm.bash b/paludis/repositories/e/ebuild/0/builtin_initrm.bash
index b9ea60f..ca13761 100644
--- a/paludis/repositories/e/ebuild/0/builtin_initrm.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_initrm.bash
@@ -69,9 +69,7 @@ builtin_initrm()
ebuild_f_initrm()
{
- if hasq "initrm" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_initrm (RESTRICT)"
- elif hasq "initrm" ${SKIP_FUNCTIONS} ; then
+ if hasq "initrm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_initrm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_initrm"
diff --git a/paludis/repositories/e/ebuild/0/builtin_killold.bash b/paludis/repositories/e/ebuild/0/builtin_killold.bash
index 450f590..2fec908 100644
--- a/paludis/repositories/e/ebuild/0/builtin_killold.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_killold.bash
@@ -33,9 +33,7 @@ builtin_killold()
ebuild_f_killold()
{
- if hasq "killold" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_killold (RESTRICT)"
- elif hasq "killold" ${SKIP_FUNCTIONS} ; then
+ if hasq "killold" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_killold (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_killold"
diff --git a/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash b/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash
index 506772f..55623af 100644
--- a/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_killoldmisc.bash
@@ -33,9 +33,7 @@ builtin_killoldmisc()
ebuild_f_killoldmisc()
{
- if hasq "killoldmisc" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_killoldmisc (RESTRICT)"
- elif hasq "killoldmisc" ${SKIP_FUNCTIONS} ; then
+ if hasq "killoldmisc" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_killoldmisc (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_killoldmisc"
diff --git a/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash b/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash
index a5e5669..555ac94 100644
--- a/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_killoldrm.bash
@@ -33,9 +33,7 @@ builtin_killoldrm()
ebuild_f_killoldrm()
{
- if hasq "killoldrm" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_killoldrm (RESTRICT)"
- elif hasq "killoldrm" ${SKIP_FUNCTIONS} ; then
+ if hasq "killoldrm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_killoldrm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_killoldrm"
diff --git a/paludis/repositories/e/ebuild/0/builtin_loadenv.bash b/paludis/repositories/e/ebuild/0/builtin_loadenv.bash
index 36de8f4..fe1c916 100644
--- a/paludis/repositories/e/ebuild/0/builtin_loadenv.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_loadenv.bash
@@ -31,9 +31,7 @@ ebuild_f_loadenv()
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && \
SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${PALUDIS_LOADSAVEENV_DIR%/}/"
- if hasq "loadenv" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_loadenv (RESTRICT)"
- elif hasq "loadenv" ${SKIP_FUNCTIONS} ; then
+ if hasq "loadenv" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_loadenv (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_loadenv"
diff --git a/paludis/repositories/e/ebuild/0/builtin_saveenv.bash b/paludis/repositories/e/ebuild/0/builtin_saveenv.bash
index f2f3468..b227b32 100644
--- a/paludis/repositories/e/ebuild/0/builtin_saveenv.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_saveenv.bash
@@ -28,9 +28,7 @@ ebuild_f_saveenv()
local old_sandbox_write="${SANDBOX_WRITE}"
SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${PALUDIS_LOADSAVEENV_DIR%/}/"
- if hasq "saveenv" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_saveenv (RESTRICT)"
- elif hasq "saveenv" ${SKIP_FUNCTIONS} ; then
+ if hasq "saveenv" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_saveenv (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_saveenv"
diff --git a/paludis/repositories/e/ebuild/0/builtin_tidyup.bash b/paludis/repositories/e/ebuild/0/builtin_tidyup.bash
index 27f8bba..445c3b3 100644
--- a/paludis/repositories/e/ebuild/0/builtin_tidyup.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_tidyup.bash
@@ -30,9 +30,7 @@ builtin_tidyup()
ebuild_f_tidyup()
{
- if hasq "tidyup" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_tidyup (RESTRICT)"
- elif hasq "tidyup" ${SKIP_FUNCTIONS} ; then
+ if hasq "tidyup" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_tidyup (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_tidyup"
diff --git a/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash b/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash
index 8dbc35a..3e47aa7 100644
--- a/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_tidyupmisc.bash
@@ -30,9 +30,7 @@ builtin_tidyupmisc()
ebuild_f_tidyupmisc()
{
- if hasq "tidyupmisc" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_tidyupmisc (RESTRICT)"
- elif hasq "tidyupmisc" ${SKIP_FUNCTIONS} ; then
+ if hasq "tidyupmisc" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_tidyupmisc (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_tidyupmisc"
diff --git a/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash b/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash
index ba41276..a282d34 100644
--- a/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash
+++ b/paludis/repositories/e/ebuild/0/builtin_tidyuprm.bash
@@ -30,9 +30,7 @@ builtin_tidyuprm()
ebuild_f_tidyuprm()
{
- if hasq "tidyuprm" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_tidyuprm (RESTRICT)"
- elif hasq "tidyuprm" ${SKIP_FUNCTIONS} ; then
+ if hasq "tidyuprm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_tidyuprm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_tidyuprm"
diff --git a/paludis/repositories/e/ebuild/0/pkg_config.bash b/paludis/repositories/e/ebuild/0/pkg_config.bash
index e119a9a..c8160a6 100644
--- a/paludis/repositories/e/ebuild/0/pkg_config.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_config.bash
@@ -30,9 +30,7 @@ ebuild_f_config()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "config" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_config (RESTRICT)"
- elif hasq "config" ${SKIP_FUNCTIONS} ; then
+ if hasq "config" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_config (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_pkg_config ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/pkg_info.bash b/paludis/repositories/e/ebuild/0/pkg_info.bash
index 856730d..1990df6 100644
--- a/paludis/repositories/e/ebuild/0/pkg_info.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_info.bash
@@ -23,9 +23,7 @@ pkg_info()
ebuild_f_info()
{
- if hasq "info" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_info (RESTRICT)"
- elif hasq "info" ${SKIP_FUNCTIONS} ; then
+ if hasq "info" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_info (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_pkg_info ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/pkg_postinst.bash b/paludis/repositories/e/ebuild/0/pkg_postinst.bash
index de74ee3..3fe06e8 100644
--- a/paludis/repositories/e/ebuild/0/pkg_postinst.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_postinst.bash
@@ -30,9 +30,7 @@ ebuild_f_postinst()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "postinst" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_postinst (RESTRICT)"
- elif hasq "postinst" ${SKIP_FUNCTIONS} ; then
+ if hasq "postinst" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_postinst (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_pkg_postinst ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/pkg_postrm.bash b/paludis/repositories/e/ebuild/0/pkg_postrm.bash
index 8dc437b..d027ec8 100644
--- a/paludis/repositories/e/ebuild/0/pkg_postrm.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_postrm.bash
@@ -30,9 +30,7 @@ ebuild_f_postrm()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "postrm" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_postrm (RESTRICT)"
- elif hasq "postrm" ${SKIP_FUNCTIONS} ; then
+ if hasq "postrm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_postrm (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_pkg_postrm ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/pkg_preinst.bash b/paludis/repositories/e/ebuild/0/pkg_preinst.bash
index cbfb009..5bfb427 100644
--- a/paludis/repositories/e/ebuild/0/pkg_preinst.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_preinst.bash
@@ -30,9 +30,7 @@ ebuild_f_preinst()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "preinst" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_preinst (RESTRICT)"
- elif hasq "preinst" ${SKIP_FUNCTIONS} ; then
+ if hasq "preinst" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_preinst (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_pkg_preinst ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/pkg_prerm.bash b/paludis/repositories/e/ebuild/0/pkg_prerm.bash
index 81c72cd..8f2824a 100644
--- a/paludis/repositories/e/ebuild/0/pkg_prerm.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_prerm.bash
@@ -30,9 +30,7 @@ ebuild_f_prerm()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "prerm" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_prerm (RESTRICT)"
- elif hasq "prerm" ${SKIP_FUNCTIONS} ; then
+ if hasq "prerm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_prerm (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_pkg_prerm ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/pkg_pretend.bash b/paludis/repositories/e/ebuild/0/pkg_pretend.bash
index 046470d..cd5a4c9 100644
--- a/paludis/repositories/e/ebuild/0/pkg_pretend.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_pretend.bash
@@ -23,9 +23,7 @@ pkg_pretend()
ebuild_f_pretend()
{
- if hasq "pretend" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_pretend (RESTRICT)"
- elif hasq "pretend" ${SKIP_FUNCTIONS} ; then
+ if hasq "pretend" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_pretend (SKIP_FUNCTIONS)"
else
echo
diff --git a/paludis/repositories/e/ebuild/0/pkg_setup.bash b/paludis/repositories/e/ebuild/0/pkg_setup.bash
index 5234449..f5fabae 100644
--- a/paludis/repositories/e/ebuild/0/pkg_setup.bash
+++ b/paludis/repositories/e/ebuild/0/pkg_setup.bash
@@ -30,9 +30,7 @@ ebuild_f_setup()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "setup" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_setup (RESTRICT)"
- elif hasq "setup" ${SKIP_FUNCTIONS} ; then
+ if hasq "setup" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_setup (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_pkg_setup ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/src_compile.bash b/paludis/repositories/e/ebuild/0/src_compile.bash
index 282dba8..ec8aff1 100644
--- a/paludis/repositories/e/ebuild/0/src_compile.bash
+++ b/paludis/repositories/e/ebuild/0/src_compile.bash
@@ -36,9 +36,7 @@ ebuild_f_compile()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "compile" ${RESTRICT} ; then
- ebuild_section "Skipping src_compile (RESTRICT)"
- elif hasq "compile" ${SKIP_FUNCTIONS} ; then
+ if hasq "compile" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_compile (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_src_compile ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/src_install.bash b/paludis/repositories/e/ebuild/0/src_install.bash
index 44d51d6..50baf67 100644
--- a/paludis/repositories/e/ebuild/0/src_install.bash
+++ b/paludis/repositories/e/ebuild/0/src_install.bash
@@ -33,9 +33,7 @@ ebuild_f_install()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "install" ${RESTRICT} ; then
- ebuild_section "Skipping src_install (RESTRICT)"
- elif hasq "install" ${SKIP_FUNCTIONS} ; then
+ if hasq "install" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_install (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_src_install ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/src_test.bash b/paludis/repositories/e/ebuild/0/src_test.bash
index e44c0ab..37aeeb6 100644
--- a/paludis/repositories/e/ebuild/0/src_test.bash
+++ b/paludis/repositories/e/ebuild/0/src_test.bash
@@ -56,9 +56,7 @@ ebuild_f_test()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "test" ${RESTRICT} ; then
- ebuild_section "Skipping src_test (RESTRICT)"
- elif hasq "test" ${SKIP_FUNCTIONS} ; then
+ if hasq "test" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_test (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_src_test ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/0/src_unpack.bash b/paludis/repositories/e/ebuild/0/src_unpack.bash
index 84d47bd..5cc8831 100644
--- a/paludis/repositories/e/ebuild/0/src_unpack.bash
+++ b/paludis/repositories/e/ebuild/0/src_unpack.bash
@@ -29,9 +29,7 @@ ebuild_f_unpack()
{
cd ${WORKDIR} || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
- if hasq "unpack" ${RESTRICT} ; then
- ebuild_section "Skipping src_unpack (RESTRICT)"
- elif hasq "unpack" ${SKIP_FUNCTIONS} ; then
+ if hasq "unpack" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_unpack (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_src_unpack ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/1/src_compile.bash b/paludis/repositories/e/ebuild/1/src_compile.bash
index 110d60b..33c2ab7 100644
--- a/paludis/repositories/e/ebuild/1/src_compile.bash
+++ b/paludis/repositories/e/ebuild/1/src_compile.bash
@@ -36,9 +36,7 @@ ebuild_f_compile()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "compile" ${RESTRICT} ; then
- ebuild_section "Skipping src_compile (RESTRICT)"
- elif hasq "compile" ${SKIP_FUNCTIONS} ; then
+ if hasq "compile" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_compile (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_src_compile ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash
index 55dabb6..b0f48e2 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_infovars.bash
@@ -26,9 +26,7 @@ builtin_infovars()
exheres_internal_infovars()
{
- if hasq "infovars" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_infovars (RESTRICT)"
- elif hasq "infovars" ${SKIP_FUNCTIONS} ; then
+ if hasq "infovars" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_infovars (SKIP_FUNCTIONS)"
else
if [[ $(type -t pre_builtin_infovars ) == "function" ]] ; then
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash
index 14335a4..090481b 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_init.bash
@@ -83,9 +83,7 @@ builtin_init()
exheres_internal_init()
{
- if hasq "init" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_init (RESTRICT)"
- elif hasq "init" ${SKIP_FUNCTIONS} ; then
+ if hasq "init" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_init (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_init"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
index 000dcf8..6229b7d 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_initmisc.bash
@@ -69,9 +69,7 @@ builtin_initmisc()
exheres_internal_initmisc()
{
- if hasq "initmisc" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_initmisc (RESTRICT)"
- elif hasq "initmisc" ${SKIP_FUNCTIONS} ; then
+ if hasq "initmisc" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_initmisc (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_initmisc"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash
index c571a1d..70ba8a8 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_initrm.bash
@@ -69,9 +69,7 @@ builtin_initrm()
exheres_internal_initrm()
{
- if hasq "initrm" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_initrm (RESTRICT)"
- elif hasq "initrm" ${SKIP_FUNCTIONS} ; then
+ if hasq "initrm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_initrm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_initrm"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash
index b268daa..3db2d18 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_killold.bash
@@ -33,9 +33,7 @@ builtin_killold()
exheres_internal_killold()
{
- if hasq "killold" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_killold (RESTRICT)"
- elif hasq "killold" ${SKIP_FUNCTIONS} ; then
+ if hasq "killold" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_killold (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_killold"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash
index ae898c7..14a02b0 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldmisc.bash
@@ -33,9 +33,7 @@ builtin_killoldmisc()
exheres_internal_killoldmisc()
{
- if hasq "killoldmisc" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_killoldmisc (RESTRICT)"
- elif hasq "killoldmisc" ${SKIP_FUNCTIONS} ; then
+ if hasq "killoldmisc" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_killoldmisc (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_killoldmisc"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash
index ad88396..7a5bf45 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_killoldrm.bash
@@ -33,9 +33,7 @@ builtin_killoldrm()
exheres_internal_killoldrm()
{
- if hasq "killoldrm" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_killoldrm (RESTRICT)"
- elif hasq "killoldrm" ${SKIP_FUNCTIONS} ; then
+ if hasq "killoldrm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_killoldrm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_killoldrm"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash
index 919fd37..93f5cd1 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_loadenv.bash
@@ -31,9 +31,7 @@ exheres_internal_loadenv()
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && \
SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${PALUDIS_LOADSAVEENV_DIR%/}/"
- if hasq "loadenv" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_loadenv (RESTRICT)"
- elif hasq "loadenv" ${SKIP_FUNCTIONS} ; then
+ if hasq "loadenv" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_loadenv (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_loadenv"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash
index 64b4d4d..c98e397 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_saveenv.bash
@@ -28,9 +28,7 @@ exheres_internal_saveenv()
local old_sandbox_write="${SANDBOX_WRITE}"
SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${PALUDIS_LOADSAVEENV_DIR%/}/"
- if hasq "saveenv" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_saveenv (RESTRICT)"
- elif hasq "saveenv" ${SKIP_FUNCTIONS} ; then
+ if hasq "saveenv" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_saveenv (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_saveenv"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash
index f0b8f25..7ca080f 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyup.bash
@@ -30,9 +30,7 @@ builtin_tidyup()
exheres_internal_tidyup()
{
- if hasq "tidyup" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_tidyup (RESTRICT)"
- elif hasq "tidyup" ${SKIP_FUNCTIONS} ; then
+ if hasq "tidyup" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_tidyup (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_tidyup"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash
index fd66ed0..7646996 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyupmisc.bash
@@ -30,9 +30,7 @@ builtin_tidyupmisc()
exheres_internal_tidyupmisc()
{
- if hasq "tidyupmisc" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_tidyupmisc (RESTRICT)"
- elif hasq "tidyupmisc" ${SKIP_FUNCTIONS} ; then
+ if hasq "tidyupmisc" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_tidyupmisc (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_tidyupmisc"
diff --git a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash
index 3d1ae75..13b3b32 100644
--- a/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/builtin_tidyuprm.bash
@@ -30,9 +30,7 @@ builtin_tidyuprm()
exheres_internal_tidyuprm()
{
- if hasq "tidyuprm" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_tidyuprm (RESTRICT)"
- elif hasq "tidyuprm" ${SKIP_FUNCTIONS} ; then
+ if hasq "tidyuprm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_tidyuprm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_tidyuprm"
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash
index 4b9faa6..3a03225 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_config.bash
@@ -35,9 +35,7 @@ exheres_internal_config()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "config" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_config (RESTRICT)"
- elif hasq "config" ${SKIP_FUNCTIONS} ; then
+ if hasq "config" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_config (SKIP_FUNCTIONS)"
else
ebuild_section "Starting pkg_config"
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash
index 70d4e53..9b67bc1 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_info.bash
@@ -28,9 +28,7 @@ pkg_info()
exheres_internal_info()
{
- if hasq "info" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_info (RESTRICT)"
- elif hasq "info" ${SKIP_FUNCTIONS} ; then
+ if hasq "info" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_info (SKIP_FUNCTIONS)"
else
ebuild_section "Starting pkg_info"
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash
index 6c248a3..f1c67f4 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_postinst.bash
@@ -35,9 +35,7 @@ exheres_internal_postinst()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "postinst" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_postinst (RESTRICT)"
- elif hasq "postinst" ${SKIP_FUNCTIONS} ; then
+ if hasq "postinst" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_postinst (SKIP_FUNCTIONS)"
else
ebuild_section "Starting pkg_postinst"
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash
index adb26dc..5bd4049 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_postrm.bash
@@ -35,9 +35,7 @@ exheres_internal_postrm()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "postrm" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_postrm (RESTRICT)"
- elif hasq "postrm" ${SKIP_FUNCTIONS} ; then
+ if hasq "postrm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_postrm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting pkg_postrm"
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
index 571bb49..bb8fc97 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
@@ -35,9 +35,7 @@ exheres_internal_preinst()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "preinst" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_preinst (RESTRICT)"
- elif hasq "preinst" ${SKIP_FUNCTIONS} ; then
+ if hasq "preinst" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_preinst (SKIP_FUNCTIONS)"
else
ebuild_section "Starting pkg_preinst"
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash
index 2dbfd07..47a3c33 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_prerm.bash
@@ -35,9 +35,7 @@ exheres_internal_prerm()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "prerm" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_prerm (RESTRICT)"
- elif hasq "prerm" ${SKIP_FUNCTIONS} ; then
+ if hasq "prerm" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_prerm (SKIP_FUNCTIONS)"
else
ebuild_section "Starting pkg_prerm"
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
index 8dfa434..e78158b 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_pretend.bash
@@ -28,9 +28,7 @@ pkg_pretend()
exheres_internal_pretend()
{
- if hasq "pretend" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_pretend (RESTRICT)"
- elif hasq "pretend" ${SKIP_FUNCTIONS} ; then
+ if hasq "pretend" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_pretend (SKIP_FUNCTIONS)"
else
echo
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash
index ef68b98..1e0bd0f 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_setup.bash
@@ -35,9 +35,7 @@ exheres_internal_setup()
local old_sandbox_write="${SANDBOX_WRITE}"
[[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
- if hasq "setup" ${RESTRICT} ; then
- ebuild_section "Skipping pkg_setup (RESTRICT)"
- elif hasq "setup" ${SKIP_FUNCTIONS} ; then
+ if hasq "setup" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_setup (SKIP_FUNCTIONS)"
else
ebuild_section "Starting pkg_setup"
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_compile.bash b/paludis/repositories/e/ebuild/exheres-0/src_compile.bash
index 8a03db5..0257ffe 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_compile.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_compile.bash
@@ -40,9 +40,7 @@ exheres_internal_compile()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "compile" ${RESTRICT} ; then
- ebuild_section "Skipping src_compile (RESTRICT)"
- elif hasq "compile" ${SKIP_FUNCTIONS} ; then
+ if hasq "compile" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_compile (SKIP_FUNCTIONS)"
else
ebuild_section "Starting src_compile"
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_configure.bash b/paludis/repositories/e/ebuild/exheres-0/src_configure.bash
index d53990b..00a5c8d 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_configure.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_configure.bash
@@ -47,9 +47,7 @@ exheres_internal_configure()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "configure" ${RESTRICT} ; then
- ebuild_section "Skipping src_configure (RESTRICT)"
- elif hasq "configure" ${SKIP_FUNCTIONS} ; then
+ if hasq "configure" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_configure (SKIP_FUNCTIONS)"
else
ebuild_section "Starting src_configure"
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_install.bash b/paludis/repositories/e/ebuild/exheres-0/src_install.bash
index 7b52f47..387c768 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_install.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_install.bash
@@ -38,9 +38,7 @@ exheres_internal_install()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "install" ${RESTRICT} ; then
- ebuild_section "Skipping src_install (RESTRICT)"
- elif hasq "install" ${SKIP_FUNCTIONS} ; then
+ if hasq "install" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_install (SKIP_FUNCTIONS)"
else
ebuild_section "Starting src_install"
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash b/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash
index 5b1eaa8..ad39653 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_prepare.bash
@@ -40,9 +40,7 @@ exheres_internal_prepare()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "prepare" ${RESTRICT} ; then
- ebuild_section "Skipping src_prepare (RESTRICT)"
- elif hasq "prepare" ${SKIP_FUNCTIONS} ; then
+ if hasq "prepare" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_prepare (SKIP_FUNCTIONS)"
else
ebuild_section "Starting src_prepare"
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_test.bash b/paludis/repositories/e/ebuild/exheres-0/src_test.bash
index fa348fc..4fc0d7f 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_test.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_test.bash
@@ -56,9 +56,7 @@ exheres_internal_test()
cd "${WORKDIR}" || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
fi
- if hasq "test" ${RESTRICT} ; then
- ebuild_section "Skipping src_test (RESTRICT)"
- elif hasq "test" ${SKIP_FUNCTIONS} ; then
+ if hasq "test" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_test (SKIP_FUNCTIONS)"
else
ebuild_section "Starting src_test"
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash b/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash
index 34ef371..ad8f07d 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_unpack.bash
@@ -34,9 +34,7 @@ exheres_internal_unpack()
{
cd ${WORKDIR} || die "cd to \${WORKDIR} (\"${WORKDIR}\") failed"
- if hasq "unpack" ${RESTRICT} ; then
- ebuild_section "Skipping src_unpack (RESTRICT)"
- elif hasq "unpack" ${SKIP_FUNCTIONS} ; then
+ if hasq "unpack" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_unpack (SKIP_FUNCTIONS)"
else
ebuild_section "Starting src_unpack"
diff --git a/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash b/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash
index 1e3368d..7906702 100644
--- a/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash
+++ b/paludis/repositories/e/ebuild/pbin-1/builtin_installbin.bash
@@ -24,9 +24,7 @@ builtin_installbin()
generic_internal_installbin()
{
- if hasq "installbin" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_installbin (RESTRICT)"
- elif hasq "init" ${SKIP_FUNCTIONS} ; then
+ if hasq "init" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_installbin (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_installbin"
diff --git a/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash b/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash
index 5f8152a..7d17ac3 100644
--- a/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash
+++ b/paludis/repositories/e/ebuild/pbin-1/builtin_pivotbin.bash
@@ -34,9 +34,7 @@ builtin_pivotbin()
generic_internal_pivotbin()
{
- if hasq "pivotbin" ${RESTRICT} ; then
- ebuild_section "Skipping builtin_pivotbin (RESTRICT)"
- elif hasq "init" ${SKIP_FUNCTIONS} ; then
+ if hasq "init" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping builtin_pivotbin (SKIP_FUNCTIONS)"
else
ebuild_section "Starting builtin_pivotbin"
diff --git a/paludis/repositories/e/ebuild_entries.cc b/paludis/repositories/e/ebuild_entries.cc
index 11895e6..7571cc4 100644
--- a/paludis/repositories/e/ebuild_entries.cc
+++ b/paludis/repositories/e/ebuild_entries.cc
@@ -430,7 +430,7 @@ EbuildEntries::install(const tr1::shared_ptr<const ERepositoryID> & id,
Context context("When installing '" + stringify(*id) + "':");
- bool userpriv_restrict, strip_restrict;
+ bool userpriv_restrict, test_restrict, strip_restrict;
{
DepSpecFlattener<RestrictSpecTree, PlainTextDepSpec> restricts(_imp->params.environment);
if (id->restrict_key())
@@ -442,6 +442,10 @@ EbuildEntries::install(const tr1::shared_ptr<const ERepositoryID> & id,
indirect_iterator(restricts.end()) != std::find_if(indirect_iterator(restricts.begin()), indirect_iterator(restricts.end()),
tr1::bind(std::equal_to<std::string>(), tr1::bind(tr1::mem_fn(&StringDepSpec::text), _1), "nouserpriv"));
+ test_restrict =
+ indirect_iterator(restricts.end()) != std::find_if(indirect_iterator(restricts.begin()), indirect_iterator(restricts.end()),
+ tr1::bind(std::equal_to<std::string>(), tr1::bind(tr1::mem_fn(&StringDepSpec::text), _1), "test"));
+
strip_restrict =
indirect_iterator(restricts.end()) != std::find_if(indirect_iterator(restricts.begin()), indirect_iterator(restricts.end()),
tr1::bind(std::equal_to<std::string>(), tr1::bind(tr1::mem_fn(&StringDepSpec::text), _1), "strip")) ||
@@ -590,6 +594,9 @@ EbuildEntries::install(const tr1::shared_ptr<const ERepositoryID> & id,
{
if (phase->option("checkphase"))
{
+ if (test_restrict)
+ continue;
+
switch (o[k::checks()])
{
case iaco_none: