aboutsummaryrefslogtreecommitdiff
path: root/hooks/gnu_info_index.bash
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-31 06:39:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-31 06:39:48 +0000
commit1c0b8304317df2583ef2e01a336dbbb576e3dd18 (patch)
tree7330ae515f7a3868bd213d666f0de83a68a410ca /hooks/gnu_info_index.bash
parentd3c823516272f99d3588dedcc6d3c6f09fbb14b3 (diff)
downloadpaludis-1c0b8304317df2583ef2e01a336dbbb576e3dd18.tar.gz
paludis-1c0b8304317df2583ef2e01a336dbbb576e3dd18.tar.xz
Remove hard references to vdb directory
Diffstat (limited to 'hooks/gnu_info_index.bash')
-rwxr-xr-xhooks/gnu_info_index.bash7
1 files changed, 4 insertions, 3 deletions
diff --git a/hooks/gnu_info_index.bash b/hooks/gnu_info_index.bash
index 64baaeb7f..1fa7ba6ef 100755
--- a/hooks/gnu_info_index.bash
+++ b/hooks/gnu_info_index.bash
@@ -24,13 +24,14 @@ echo
einfo "Checking whether the GNU info directory needs updating..."
regen_info_dirs=
+vdb_loc=$(${PALUDIS_COMMAND} --configuration-variable installed location )
for info_path in ${INFOPATH/:/ } ; do
info_path="${ROOT%/}/${info_path}"
[[ -d "${info_path}" ]] || continue
info_time=$(getmtime "${info_path}" )
- if [[ -f "${ROOT}/var/db/pkg/.cache/info_time_cache" ]] ; then
- info_time_cache=$(getmtime "${ROOT}"/var/db/pkg/.cache/info_time_cache )
+ if [[ -f "${vdb_loc}/.cache/info_time_cache" ]] ; then
+ info_time_cache=$(getmtime "${vdb_loc}"/.cache/info_time_cache )
[[ "${info_time}" -le "${info_time_cache}" ]] && continue
fi
@@ -71,7 +72,7 @@ for info_path in ${regen_info_dirs} ; do
done
done
-touch "${ROOT}/var/db/pkg/.cache/info_time_cache"
+touch "${vdb_loc}/.cache/info_time_cache"
if [[ ${bad_count} -gt 0 ]] ; then
ewarn "Processed $(( good_count + bad_count )) info files, with ${bad_count} errors"