[oe-commits] [openembedded-core] 17/20: systemd-systemctl-native: fix unit detection

git at git.openembedded.org git at git.openembedded.org
Fri Apr 8 07:06:11 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 0395162aa45a416db6a0a38e7ee6c0f808272393
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Wed Apr 6 20:45:57 2016 +0100

    systemd-systemctl-native: fix unit detection
    
    The regexs were too strict and didn't allow for trailing whitespace.
    
    [ YOCTO #9337 ]
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/systemd/systemd-systemctl/systemctl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl
index 1164dd4..efad14c 100755
--- a/meta/recipes-core/systemd/systemd-systemctl/systemctl
+++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl
@@ -108,7 +108,7 @@ for service in $services; do
 
 	# If any new unit types are added to systemd they should be added
 	# to this regular expression.
-	unit_types_re='\.\(service\|socket\|device\|mount\|automount\|swap\|target\|path\|timer\|snapshot\)$'
+	unit_types_re='\.\(service\|socket\|device\|mount\|automount\|swap\|target\|path\|timer\|snapshot\)\s*$'
 	if [ "$action" = "preset" ]; then
 		action=`egrep -sh  $service $ROOT/etc/systemd/user-preset/*.preset | cut -f1 -d' '`
 		if [ -z "$action" ]; then

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list