[Pkg-mono-svn-commits] rev 3428 - mono/trunk/debian

Mirco Bauer meebey-guest at alioth.debian.org
Sun Nov 4 15:52:25 UTC 2007


Author: meebey-guest
Date: 2007-11-04 15:52:25 +0000 (Sun, 04 Nov 2007)
New Revision: 3428

Modified:
   mono/trunk/debian/mono.runtime-script
Log:
- fixed chomp usage, and return code check.



Modified: mono/trunk/debian/mono.runtime-script
===================================================================
--- mono/trunk/debian/mono.runtime-script	2007-11-04 14:37:45 UTC (rev 3427)
+++ mono/trunk/debian/mono.runtime-script	2007-11-04 15:52:25 UTC (rev 3428)
@@ -59,13 +59,13 @@
 
 	while (<UNINSTALL>)
 	{
-	    # Clean up the line
-	    my $assembly = chomp;
-	    my $cmd = "/usr/bin/mono /usr/lib/mono/1.0/gacutil.exe /u $assembly > /dev/null";
-	    my $res = system($cmd);
-	    if (!$res) {
-                print STDERR "W: removing Assembly $assembly failed!\n";
-            }
+		my $assembly = $_;
+		chomp($assembly);
+		my $cmd = "/usr/bin/mono /usr/lib/mono/1.0/gacutil.exe /u $assembly ";
+		my $res = system($cmd);
+		if ($res > 0) {
+			print STDERR "W: removing assembly: $assembly failed!\n";
+		}
 	}
 
 	close UNINSTALL;




More information about the Pkg-mono-svn-commits mailing list