[Fai-commit] r5796 - in trunk: bin debian

Thomas Lange lange at alioth.debian.org
Tue Jun 1 15:05:16 UTC 2010


Author: lange
Date: 2010-06-01 15:05:13 +0000 (Tue, 01 Jun 2010)
New Revision: 5796

Modified:
   trunk/bin/ainsl
   trunk/debian/changelog
Log:
ainsl: exit with 0 if line already exists in the file

Modified: trunk/bin/ainsl
===================================================================
--- trunk/bin/ainsl	2010-06-01 06:30:39 UTC (rev 5795)
+++ trunk/bin/ainsl	2010-06-01 15:05:13 UTC (rev 5796)
@@ -6,7 +6,7 @@
 # ainsl -- AppendIfNoSuchLine written in Perl
 #
 # This script is part of FAI (Fully Automatic Installation)
-# Copyright (C) 2006-2009 Thomas Lange, lange at informatik.uni-koeln.de
+# Copyright (C) 2006-2010 Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -27,7 +27,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 #*********************************************************************
 
-my $version = "Version 1.3, 17-july-2009";
+my $version = "Version 2.0, 1-june-2010";
 
 use strict;
 
@@ -133,7 +133,7 @@
   }
 }
 close(INFILE);
-exit 1 if $found; # nothing to append
+exit 0 if $found; # nothing to append
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 # Append line to file
 print "ainsl: appending to $filename: $line\n" if $verbose;

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2010-06-01 06:30:39 UTC (rev 5795)
+++ trunk/debian/changelog	2010-06-01 15:05:13 UTC (rev 5796)
@@ -3,6 +3,7 @@
   [ Thomas Lange ]
   * make-fai-nfsroot: fix typo
   * mkramdisk: use exit in main routine (closes: #583289)
+  * ainsl: exit with 0 if line already exists in the file
 
  -- Thomas Lange <lange at debian.org>  Mon, 31 May 2010 16:50:25 +0200
 




More information about the Fai-commit mailing list