]> code.ossystems Code Review - openembedded-core.git/commit
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:43:49 +0000 (14:43 +0100)
commit443e75ee2c0e9a62df997aef24855bce54d39177
tree21fd1648554510befb03851a7b297c802b41fa22
parent12074bf5319c1086f86efd00f502c91fed344698
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 '='.

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