[COMMIT osv master] scripts: do not resolve symlink targets when exporting -

5 views
Skip to first unread message

Commit Bot

unread,
Apr 20, 2020, 10:24:29 PM4/20/20
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

scripts: do not resolve symlink targets when exporting -

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/scripts/export_manifest.py b/scripts/export_manifest.py
--- a/scripts/export_manifest.py
+++ b/scripts/export_manifest.py
@@ -28,13 +28,6 @@ def export_package(manifest, dest):
link_source = hostname[2:]
target_dir = os.path.dirname(name)

- if link_source.startswith("/"):
- link_source = os.path.join(abs_dest, link_source[1:])
- else:
- link_source = os.path.abspath(os.path.join(target_dir, link_source))
-
- link_source = os.path.relpath(link_source, target_dir)
-
if not os.path.exists(target_dir):
os.makedirs(target_dir)

Reply all
Reply to author
Forward
0 new messages