summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-06-05 19:46:54 +0000
committerChristian Heim <phreak@gentoo.org>2006-06-05 19:46:54 +0000
commitae0bbf3ae39e23600345b42edfe2ac1babcb4dc0 (patch)
treea7b020f26114e96c9949a4a4cb38f1f9d77ebd8c /sbin/depscan.sh
parentMerging r2046 (diff)
downloadbaselayout-vserver-ae0bbf3ae39e23600345b42edfe2ac1babcb4dc0.tar.gz
baselayout-vserver-ae0bbf3ae39e23600345b42edfe2ac1babcb4dc0.tar.bz2
baselayout-vserver-ae0bbf3ae39e23600345b42edfe2ac1babcb4dc0.zip
Merging r2079
svn path=/baselayout-vserver/trunk/; revision=372
Diffstat (limited to 'sbin/depscan.sh')
-rwxr-xr-xsbin/depscan.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/depscan.sh b/sbin/depscan.sh
index d0cff4a..7ca6fe2 100755
--- a/sbin/depscan.sh
+++ b/sbin/depscan.sh
@@ -89,13 +89,17 @@ if ! ${update} ; then
fi
touch "${mtime_test}"
- for config in /etc/conf.d /etc/init.d /etc/rc.conf
+ for config in /etc/conf.d/* /etc/init.d/* /etc/rc.conf
do
! ${update} \
&& is_older_than "${mysvcdir}/depcache" "${config}" \
&& update=true
- is_older_than "${mtime_test}" "${config}" && clock_screw=1
+ if is_older_than "${mtime_test}" "${config}" ; then
+ # Update the file modification time
+ touch "${config}" &>/dev/null
+ clock_screw=1
+ fi
done
rm -f "${mtime_test}"