moonbase.lunar modification

lazyape lazyape at gmail.com
Sun Mar 30 12:05:32 CEST 2008


if you "lin moonbase" and module.index is deleted or removed from the default location /var/state/lunar the "lin moonbase" is terminated with
cp: cannot stat /var/state/lunar/module.index

this patch fix this behaviour.


--- moonbase.lunar      2008-03-30 12:54:15.200045773 +0300
+++ moonbase.lunar      2008-03-30 12:54:06.427761136 +0300
@@ -53,6 +53,9 @@
     mv $SYSTEM_MOONBASE/zlocal/ /var/lib/lunar/.zlocal-backup    &&
     rm -rf $SYSTEM_MOONBASE                                      &&
     TMP_MODULE_INDEX=$(temp_create "temp.module.index")          &&
+    if [ ! -a  $MODULE_INDEX ]; then                           
+          touch $MODULE_INDEX                                    
+    fi                                                           
     cp $MODULE_INDEX $TMP_MODULE_INDEX                           &&
     lrm moonbase                                                 &&
     mkdir $SYSTEM_MOONBASE                                       &&


ps. i think "&&" can be deleted from the script

-- 
lazyape <lazyape at gmail.com>


More information about the Lunar-dev mailing list