[Fai-commit] r5255 - people/michael/experimental/patches

mt at alioth.debian.org mt at alioth.debian.org
Mon Feb 9 21:26:43 UTC 2009


Author: mt
Date: 2009-02-09 21:26:43 +0000 (Mon, 09 Feb 2009)
New Revision: 5255

Added:
   people/michael/experimental/patches/setup-storage_command-dep-debugging
Modified:
   people/michael/experimental/patches/series
Log:
added patch that adds debug output in command dependency evaluation


Modified: people/michael/experimental/patches/series
===================================================================
--- people/michael/experimental/patches/series	2009-02-09 16:59:09 UTC (rev 5254)
+++ people/michael/experimental/patches/series	2009-02-09 21:26:43 UTC (rev 5255)
@@ -18,3 +18,4 @@
 setup-storage_bugfix-virtual
 setup-storage_crypto-for-all-mountspecs
 setup-storage_partition-too-large-for-disk-error
+setup-storage_command-dep-debugging

Added: people/michael/experimental/patches/setup-storage_command-dep-debugging
===================================================================
--- people/michael/experimental/patches/setup-storage_command-dep-debugging	                        (rev 0)
+++ people/michael/experimental/patches/setup-storage_command-dep-debugging	2009-02-09 21:26:43 UTC (rev 5255)
@@ -0,0 +1,20 @@
+2009-02-09  Michael Tautschnig  <mt at debian.org>
+
+	* lib/setup-storage/Commands.pm: Added debug output in command dependency
+		sorter
+Index: trunk/lib/setup-storage/Commands.pm
+===================================================================
+--- trunk.orig/lib/setup-storage/Commands.pm
++++ trunk/lib/setup-storage/Commands.pm	
+@@ -929,6 +929,11 @@
+   my $pushed = -1;
+ 
+   while ($i < $FAI::n_c_i) {
++    if ($FAI::debug) {
++      print "Trying to add CMD: " . $FAI::commands{$i}{cmd} . "\n";
++      defined($FAI::commands{$i}{pre}) and print "PRE: " .  $FAI::commands{$i}{pre} . "\n";
++      defined($FAI::commands{$i}{post}) and print "POST: " .  $FAI::commands{$i}{post} . "\n";
++    }
+     my $all_matched = 1;
+     if (defined($FAI::commands{$i}{pre})) {
+       foreach (split(/,/, $FAI::commands{$i}{pre})) {




More information about the Fai-commit mailing list