diff options
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r-- | meta/classes/systemd.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 8ec4992db3..eab8735b7c 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass | |||
@@ -168,9 +168,9 @@ python rm_systemd_unitdir (){ | |||
168 | systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True)) | 168 | systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True)) |
169 | if os.path.exists(systemd_unitdir): | 169 | if os.path.exists(systemd_unitdir): |
170 | shutil.rmtree(systemd_unitdir) | 170 | shutil.rmtree(systemd_unitdir) |
171 | base_libdir = oe.path.join(d.getVar("D", True), d.getVar('base_libdir', True)) | 171 | systemd_libdir = os.path.dirname(systemd_unitdir) |
172 | if (os.path.exists(base_libdir) and not os.listdir(base_libdir)): | 172 | if (os.path.exists(systemd_libdir) and not os.listdir(systemd_libdir)): |
173 | os.rmdir(base_libdir) | 173 | os.rmdir(systemd_libdir) |
174 | } | 174 | } |
175 | do_install[postfuncs] += "rm_systemd_unitdir " | 175 | do_install[postfuncs] += "rm_systemd_unitdir " |
176 | 176 | ||