systemd-systemctl: parse unit files more correctly
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Wed, 24 Apr 2013 11:37:21 +0000 (13:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Apr 2013 13:45:06 +0000 (14:45 +0100)
commit485f21cc08f6684dbcd7e4002950fc650cc82361
tree9b724cfe0a9192fbe9bfe3176439389e32152aee
parent4676cb1e30055a8054d9056327a5ab90869583eb
systemd-systemctl: parse unit files more correctly

Old script failed to parse unit files containing comments like

| #Alias=some-alias

or whitespaces like

| WantedBy = foo

correctly.  Patch changes script to interpret keywords only when they
are at the beginning of a line and ignores whitespaces before the '='.

(From OE-Core rev: 443e75ee2c0e9a62df997aef24855bce54d39177)

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-systemctl/systemctl