meta: implement linking whole component directories

This commit is contained in:
2026-01-17 20:59:27 +00:00
parent 847549267a
commit ddbe70e11b
2 changed files with 7 additions and 3 deletions

View File

@@ -24,8 +24,8 @@ def uninstall_component(comp):
for f in link_dirs:
source_path = os.path.join(comp_dir, f['source'])
dest_path = os.path.join(home_dir, f['dest'])
if not os.path.exists(dest_path):
print(' removing link {} -> {}'.format(dest_path))
if os.path.exists(dest_path):
print(' removing link {}'.format(dest_path))
os.unlink(dest_path)