[csw-devel] SF.net SVN: gar:[12005] csw/mgar/pkg/cswpkgloghooks/trunk/files/ 01-CSWcswpkgloghooks-postupgrade

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sat Dec 18 16:19:09 CET 2010


Revision: 12005
          http://gar.svn.sourceforge.net/gar/?rev=12005&view=rev
Author:   bdwalton
Date:     2010-12-18 15:19:09 +0000 (Sat, 18 Dec 2010)

Log Message:
-----------
cswpkgloghooks: strip any newline in oldver as pull from state file in post hook

Modified Paths:
--------------
    csw/mgar/pkg/cswpkgloghooks/trunk/files/01-CSWcswpkgloghooks-postupgrade

Modified: csw/mgar/pkg/cswpkgloghooks/trunk/files/01-CSWcswpkgloghooks-postupgrade
===================================================================
--- csw/mgar/pkg/cswpkgloghooks/trunk/files/01-CSWcswpkgloghooks-postupgrade	2010-12-18 15:05:20 UTC (rev 12004)
+++ csw/mgar/pkg/cswpkgloghooks/trunk/files/01-CSWcswpkgloghooks-postupgrade	2010-12-18 15:19:09 UTC (rev 12005)
@@ -54,6 +54,7 @@
 	$oldver = <STATEFILE>;
 	close(STATEFILE);
 	unlink($statefile);
+	chomp($oldver);
     }
 
     if ($script =~ /remove$/) {


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


More information about the devel mailing list