diff options
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r-- | meta/classes/systemd.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index c4b4bb9b70..1b134322fb 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass | |||
@@ -154,8 +154,10 @@ python systemd_populate_packages() { | |||
154 | # Deal with adding, for example, 'ifplugd@eth0.service' from | 154 | # Deal with adding, for example, 'ifplugd@eth0.service' from |
155 | # 'ifplugd@.service' | 155 | # 'ifplugd@.service' |
156 | base = None | 156 | base = None |
157 | if service.find('@') != -1: | 157 | at = service.find('@') |
158 | base = re.sub('@[^.]+.', '@.', service) | 158 | if at != -1: |
159 | ext = service.rfind('.') | ||
160 | base = service[:at] + '@' + service[ext:] | ||
159 | 161 | ||
160 | for path in searchpaths: | 162 | for path in searchpaths: |
161 | if os.path.exists(oe.path.join(d.getVar("D"), path, service)): | 163 | if os.path.exists(oe.path.join(d.getVar("D"), path, service)): |