Split Dependencies to Listref
authorJoachim Breitner <mail@joachim-breitner.de>
Tue, 12 Jun 2007 18:53:42 +0000 (18:53 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Tue, 12 Jun 2007 18:53:42 +0000 (18:53 +0000)
Parse.pm

index 6889e67..ffb3374 100644 (file)
--- a/Parse.pm
+++ b/Parse.pm
@@ -29,6 +29,11 @@ sub parse {
 
     ($parsed{Path}, $parsed{Args}) = split(/\s/,$parsed{Exec});
 
+    $parsed{"Required-Start"} = [split(/\s/,$parsed{"Required-Start"})];
+    $parsed{"Should-Start"} = [split(/\s/,$parsed{"Should-Start"})];
+    $parsed{"Required-Stop"} = [split(/\s/,$parsed{"Required-Stop"})];
+    $parsed{"Should-Stop"} = [split(/\s/,$parsed{"Should-Stop"})];
+
     return %parsed;
 }