[Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/delugetools Eraser.java, 1.7, 1.8

Jonathan Hui jwhui at users.sourceforge.net
Tue Jul 12 11:04:10 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/Deluge/delugetools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12586

Modified Files:
	Eraser.java 
Log Message:
- Allow resetting of an image's version number.



Index: Eraser.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Deluge/delugetools/Eraser.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Eraser.java	21 Jun 2005 23:38:12 -0000	1.7
--- Eraser.java	12 Jul 2005 18:03:55 -0000	1.8
***************
*** 92,107 ****
      }
  
-     System.out.println();
-     System.out.println("--------------------------------------------------");
-     System.out.println("| WARNING: This operation allows the currently   |");
-     System.out.println("|          connected node to receive any image   |");
-     System.out.println("|          even if they are older. This          |");
-     System.out.println("|          operation is not epidemic and will    |");
-     System.out.println("|          only affect this node.                |");
-     System.out.println("--------------------------------------------------");
-     System.out.println();
- 
      if( !force )
      {
        System.out.print("Continue operation? (y/[n]) " );
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
--- 92,106 ----
      }
  
      if( !force )
      {
+       System.out.println();
+       System.out.println("--------------------------------------------------");
+       System.out.println("| WARNING: This operation resets the versioning  |");
+       System.out.println("|          info for this image. This operation   |");
+       System.out.println("|          is not epidemic and only affects the  |");
+       System.out.println("|          currently connected node.             |");
+       System.out.println("--------------------------------------------------");
+       System.out.println();
+ 
        System.out.print("Continue operation? (y/[n]) " );
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
***************
*** 122,125 ****
--- 121,125 ----
      }
  
+     advMsg.set_type(DelugeConsts.DELUGE_ADV_RESET);
      advMsg.set_imgDesc_vNum(DelugeConsts.DELUGE_INVALID_VNUM);
  



More information about the Tinyos-beta-commits mailing list