[Fai-commit] r5967 - in branches/stable/3.4: bin debian

Michael Prokop mika at alioth.debian.org
Tue Aug 17 12:52:13 UTC 2010


Author: mika
Date: 2010-08-17 12:52:02 +0000 (Tue, 17 Aug 2010)
New Revision: 5967

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


Signed-off-by: Michael Prokop <mika at grml.org>

Modified: branches/stable/3.4/bin/ainsl
===================================================================
--- branches/stable/3.4/bin/ainsl	2010-08-17 12:51:57 UTC (rev 5966)
+++ branches/stable/3.4/bin/ainsl	2010-08-17 12:52:02 UTC (rev 5967)
@@ -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: branches/stable/3.4/debian/changelog
===================================================================
--- branches/stable/3.4/debian/changelog	2010-08-17 12:51:57 UTC (rev 5966)
+++ branches/stable/3.4/debian/changelog	2010-08-17 12:52:02 UTC (rev 5967)
@@ -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