aboutsummaryrefslogtreecommitdiff
path: root/hooks/update_config_protect_list.bash
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/update_config_protect_list.bash
parent289c92ecfaceb6230346e9ff439c54ab99685ce3 (diff)
downloadpaludis-f55991f1d35ed3b6b2dd47ed41691bb63dd4301c.tar.gz
paludis-f55991f1d35ed3b6b2dd47ed41691bb63dd4301c.tar.xz
Destination aware hooks
Diffstat (limited to 'hooks/update_config_protect_list.bash')
-rwxr-xr-xhooks/update_config_protect_list.bash5
1 files changed, 5 insertions, 0 deletions
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"