[Lunar-commits] CVS: theedge/sbin lin,1.84,1.85
Auke Kok
sofar at lunar-linux.org
Mon Oct 25 20:22:01 UTC 2004
Update of /var/cvs/lunar/theedge/sbin
In directory espresso.foo-projects.org:/tmp/cvs-serv25972/sbin
Modified Files:
lin
Log Message:
Incorporate PROBE_EXPIRED code into lin: lin --probe will now check the module_is_expired status of a module an call a recompile if it is outdated and if PROBE_EXPIRED==on
Index: lin
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lin,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- lin 18 Oct 2004 10:32:39 -0000 1.84
+++ lin 25 Oct 2004 20:21:59 -0000 1.85
@@ -126,7 +126,7 @@
# pass 3 : compile/install
# no strange stuff should happen here anymore
for MODULE in $MODULES ; do
- if ! module_installed $MODULE || [ ! -n "$PROBE" ] ; then
+ if ! module_installed $MODULE || [ ! -n "$PROBE" ] || ( [ -n "$PROBE" ] && [ "$PROBE_EXPIRED" == "on" ] && module_is_expired $MODULE ) ; then
if ! module_held $MODULE ; then
linING="/var/lock/installing.$MODULE"
verbose_msg "starting lin \"$MODULE\""
@@ -181,13 +181,22 @@
if [ -z "$DEPS_ONLY" ] ; then
if ! module_held $MODULE ; then
if [ -n "$PROBE" ] ; then
+ # --probe install
if ! module_installed $MODULE ; then
if ! lin_module $MODULE ; then
temp_destroy $TEMP_PREPAREDDEPS
exit 1
fi
+ elif [ "$PROBE_EXPIRED" == "on" ] && module_is_expired $MODULE ; then
+ # probe install where module is expired
+ verbose_msg "module \"$MODULE\" needs to be updated"
+ if ! lin_module $MODULE ; then
+ temp_destroy $TEMP_PREPAREDDEPS
+ exit 1
+ fi
fi
else
+ # normal install - not probed
if ! lin_module $MODULE ; then
temp_destroy $TEMP_PREPAREDDEPS
exit 1
More information about the Lunar-commits
mailing list