[Petter Reinholdtsen]
> I suspect some headers have unexpected quotes, and wonder how to
> best filter out these illegal characters.

I suspect adding \ in front of the " characters it the best approach.
Here is a patch to do this.  Please let me know if it solve your
problem.

Index: debian/check-initd-order
===================================================================
--- debian/check-initd-order    (revision 981)
+++ debian/check-initd-order    (working copy)
@@ -145,6 +145,7 @@
     }

     for my $provide (@provides) {
+       my $provideesc = $provide; $provideesc =~ s/"/\\"/g;
         my %deps =
             (
              "required-$key" => 'blue',
@@ -162,19 +163,20 @@
                 }

                 for my $pkg (@depends) {
+                   my $pkgesc = $pkg; $pkgesc =~ s/"/\\"/g;
                     my $color = $deps{$key};
                     if ($revkey eq $key) {
-                        print "\"$provide\" -> \"$pkg\"[color=$color] ;\n";
+                        print "\"$provideesc\" -> \"$pkgesc\"[color=$color] 
;\n";
                         $gotrevdeps{$pkg} = 1 unless $dependonall;
                     } else {
-                        print "\"$pkg\" -> \"$provide\"[color=$color] ;\n";
+                        print "\"$pkgesc\" -> \"$provideesc\"[color=$color] 
;\n";
                         $gotrevdeps{$provide} = 1 unless $dependonall;
                     }
                 }
             }
         }

-        print "\"$provide\" [shape=box];\n" unless $allprovides{$provide};
+        print "\"$provideesc\" [shape=box];\n" unless $allprovides{$provide};
         $allprovides{$provide} = 1;
     }
 }


Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to