]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd.bbclass: drop has_exactly_one_service setting
authorDmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Mon, 11 May 2015 19:51:35 +0000 (22:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 May 2015 10:41:13 +0000 (11:41 +0100)
The has_exactly_one_service variable was used in now deleted code. Drop
this part to make code cleaner.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/systemd.bbclass

index c34884bd38301622d593512b5e450dbce73d4cf5..cfe1eb56d50ba39ad231025e95dcb838c94ef643 100644 (file)
@@ -139,9 +139,6 @@ python systemd_populate_packages() {
         searchpaths.append(oe.path.join(d.getVar("nonarch_base_libdir", True), "systemd", "system"))
         searchpaths.append(oe.path.join(d.getVar("exec_prefix", True), d.getVar("nonarch_base_libdir", True), "systemd", "system"))
         systemd_packages = d.getVar('SYSTEMD_PACKAGES', True)
-        has_exactly_one_service = len(systemd_packages.split()) == 1
-        if has_exactly_one_service:
-            has_exactly_one_service = len(get_package_var(d, 'SYSTEMD_SERVICE', systemd_packages).split()) == 1
 
         keys = 'Also'
         # scan for all in SYSTEMD_SERVICE[]