update setup.py: make the profiles symlink relative instead of absolute

make openwrt/profiles relative so moving or renaming the repo directory won't break the symlink

Signed-off-by: Shubham Vishwakarma <shubhamvis98@fossfrog.in>
This commit is contained in:
Shubham Vishwakarma
2025-09-29 12:39:54 +05:30
committed by John Crispin
parent d1e18425b0
commit 42007a147f

View File

@@ -87,7 +87,7 @@ def setup_tree():
for patch in patches:
run(["git", "am", "-3", str(base_dir / patch)], check=True)
run(
["ln", "-s", profiles, "profiles"], check=True,
["ln", "-rs", profiles, "profiles"], check=True,
)
print("### Patches done")
except: