mirror of
https://github.com/SynologyOpenSource/pkgscripts-ng.git
synced 2025-07-20 18:20:23 +00:00
@ -21,7 +21,10 @@ def link(source, dest, verbase=False):
|
||||
raise LinkProjectError("%s not exist." % source)
|
||||
|
||||
print("Link %s -> %s" % (source, dest))
|
||||
subprocess.check_call(['cp', '-al', source, dest])
|
||||
if os.path.islink(source):
|
||||
subprocess.check_call(['cp', '-aH', source, dest])
|
||||
else:
|
||||
subprocess.check_call(['cp', '-al', source, dest])
|
||||
|
||||
|
||||
def link_scripts(chroot):
|
||||
|
Reference in New Issue
Block a user