aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-14 21:54:15 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-14 21:54:15 +0000
commitf55991f1d35ed3b6b2dd47ed41691bb63dd4301c (patch)
tree7e2c70ccd9c7375f90d80ada39631e7d2781f35e /hooks
parent289c92ecfaceb6230346e9ff439c54ab99685ce3 (diff)
downloadpaludis-f55991f1d35ed3b6b2dd47ed41691bb63dd4301c.tar.gz
paludis-f55991f1d35ed3b6b2dd47ed41691bb63dd4301c.tar.xz
Destination aware hooks
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/eselect_env_update.bash9
-rwxr-xr-xhooks/find_config_updates.bash7
-rwxr-xr-xhooks/gnu_info_index.bash7
-rwxr-xr-xhooks/update_config_protect_list.bash5
4 files changed, 25 insertions, 3 deletions
diff --git a/hooks/eselect_env_update.bash b/hooks/eselect_env_update.bash
index eb318507a..b37628a19 100755
--- a/hooks/eselect_env_update.bash
+++ b/hooks/eselect_env_update.bash
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set et sw=4 sts=4 :
-# Copyright (c) 2006 Ciaran McCreesh <ciaranm@ciaranm.org>
+# Copyright (c) 2006, 2007 Ciaran McCreesh <ciaranm@ciaranm.org>
#
# This file is part of the Paludis package manager. Paludis is free software;
# you can redistribute it and/or modify it under the terms of the GNU General
@@ -19,8 +19,15 @@
export PATH="$(${PALUDIS_EBUILD_DIR}/utils/canonicalise ${PALUDIS_EBUILD_DIR}/utils/ ):${PATH}"
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
+if [[ -n "${PALUDIS_NO_LIVE_DESTINATION}" ]] ; then
+ einfo_unhooked "No need to regenerate environment"
+ exit 0
+fi
+
echo
einfo_unhooked "Regenerating environment..."
eselect env update || exit 1
einfo_unhooked "Done regenerating environment"
+true
+
diff --git a/hooks/find_config_updates.bash b/hooks/find_config_updates.bash
index 983684b0a..f7af8e037 100755
--- a/hooks/find_config_updates.bash
+++ b/hooks/find_config_updates.bash
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set et sw=4 sts=4 :
-# Copyright (c) 2006 Ciaran McCreesh <ciaranm@ciaranm.org>
+# Copyright (c) 2006, 2007 Ciaran McCreesh <ciaranm@ciaranm.org>
#
# This file is part of the Paludis package manager. Paludis is free software;
# you can redistribute it and/or modify it under the terms of the GNU General
@@ -21,6 +21,11 @@ shopt -s extglob
export PATH="$(${PALUDIS_EBUILD_DIR}/utils/canonicalise ${PALUDIS_EBUILD_DIR}/utils/ ):${PATH}"
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
+if [[ -n "${PALUDIS_NO_LIVE_DESTINATION}" ]] ; then
+ einfo_unhooked "No need to search for configuration files requiring action"
+ exit 0
+fi
+
echo
einfo_unhooked "Searching for configuration files requiring action..."
diff --git a/hooks/gnu_info_index.bash b/hooks/gnu_info_index.bash
index f96c690ed..0fdaab087 100755
--- a/hooks/gnu_info_index.bash
+++ b/hooks/gnu_info_index.bash
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set et sw=4 sts=4 :
-# Copyright (c) 2006 Ciaran McCreesh <ciaranm@ciaranm.org>
+# Copyright (c) 2006, 2007 Ciaran McCreesh <ciaranm@ciaranm.org>
#
# This file is part of the Paludis package manager. Paludis is free software;
# you can redistribute it and/or modify it under the terms of the GNU General
@@ -19,6 +19,11 @@
export PATH="$(${PALUDIS_EBUILD_DIR}/utils/canonicalise ${PALUDIS_EBUILD_DIR}/utils/ ):${PATH}"
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
+if [[ -n "${PALUDIS_NO_LIVE_DESTINATION}" ]] ; then
+ einfo_unhooked "No need to update the GNU info directory"
+ exit 0
+fi
+
echo
einfo_unhooked "Checking whether the GNU info directory needs updating..."
diff --git a/hooks/update_config_protect_list.bash b/hooks/update_config_protect_list.bash
index 735ceaead..c2c1e3e3f 100755
--- a/hooks/update_config_protect_list.bash
+++ b/hooks/update_config_protect_list.bash
@@ -19,6 +19,11 @@
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
+if [[ -n "${PALUDIS_NO_LIVE_DESTINATION}" ]] ; then
+ einfo_unhooked "No need to update CONFIG_PROTECT lists"
+ exit 0
+fi
+
vdb_loc="$(${PALUDIS_COMMAND} --log-level silent --configuration-variable installed location )"
cfg_protect_list="${vdb_loc}/.cache/all_CONFIG_PROTECT"
cfg_protect_mask_list="${vdb_loc}/.cache/all_CONFIG_PROTECT_MASK"