summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/systemd.bbclass')
-rw-r--r--meta/classes/systemd.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 76f0e7da1f..8ec4992db3 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -168,6 +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))
172 if (os.path.exists(base_libdir) and not os.listdir(base_libdir)):
173 os.rmdir(base_libdir)
171} 174}
172do_install[postfuncs] += "rm_systemd_unitdir " 175do_install[postfuncs] += "rm_systemd_unitdir "
173 176