[Rear-users] SF.net SVN: rear:[339] trunk/usr/share/rear/lib/layout-functions.sh

dag- at users.sourceforge.net dag- at users.sourceforge.net
Tue Apr 5 17:06:48 CEST 2011


Revision: 339
          http://rear.svn.sourceforge.net/rear/?rev=339&view=rev
Author:   dag-
Date:     2011-04-05 15:06:48 +0000 (Tue, 05 Apr 2011)

Log Message:
-----------
Add missing type to touchfiles

Modified Paths:
--------------
    trunk/usr/share/rear/lib/layout-functions.sh

Modified: trunk/usr/share/rear/lib/layout-functions.sh
===================================================================
--- trunk/usr/share/rear/lib/layout-functions.sh	2011-04-05 13:57:53 UTC (rev 338)
+++ trunk/usr/share/rear/lib/layout-functions.sh	2011-04-05 15:06:48 UTC (rev 339)
@@ -100,7 +100,7 @@
     local type=$2
     # if a touchfile already exists, no need to recreate this component
     local touchfile=${device//\//-}
-    if [ -e $LAYOUT_TOUCHDIR/$touchfile ] ; then
+    if [ -e $LAYOUT_TOUCHDIR/$type-$touchfile ] ; then
         return 1
     else
         return 0
@@ -113,7 +113,7 @@
     local type=$2
     # Create a touchfile
     local touchfile=${device//\//-}
-    touch $LAYOUT_TOUCHDIR/$touchfile
+    touch $LAYOUT_TOUCHDIR/$type-$touchfile
 }
 
 # Mark device $1 as done.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list