When copying aports to chroots, resolve symlinks

When doing it this way, we can share patches between kernels the aports
(pmaports!35, pmaports#95).
This commit is contained in:
Oliver Smith 2018-10-05 09:05:31 +02:00
parent 09fcdba597
commit 46d7891a22
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ def copy_to_buildpath(args, package, suffix="native"):
if os.path.exists(build):
pmb.chroot.root(args, ["rm", "-rf", "/home/pmos/build"], suffix)
# Copy aport contents
pmb.helpers.run.root(args, ["cp", "-r", aport + "/", build])
# Copy aport contents with resolved symlinks
pmb.helpers.run.root(args, ["cp", "-rL", aport + "/", build])
pmb.chroot.root(args, ["chown", "-R", "pmos:pmos",
"/home/pmos/build"], suffix)