|
|
|
@ -823,13 +823,13 @@ class Package:
|
|
|
|
|
|
|
|
|
|
def add_sym(self, file_name, target_path=None, mtime=None):
|
|
|
|
|
'''Метод для добавления в CONTENTS символьных ссылок.'''
|
|
|
|
|
file_name = self.remove_cfg_prefix(file_name)
|
|
|
|
|
|
|
|
|
|
real_path = file_name
|
|
|
|
|
|
|
|
|
|
file_name = self.remove_cfg_prefix(file_name)
|
|
|
|
|
file_name = self.remove_chroot_path(file_name)
|
|
|
|
|
|
|
|
|
|
if real_path == file_name:
|
|
|
|
|
real_path = join_paths(self.chroot_path, file_name)
|
|
|
|
|
if not real_path.startswith(self.chroot_path):
|
|
|
|
|
real_path = join_paths(self.chroot_path, real_path)
|
|
|
|
|
|
|
|
|
|
if target_path is None:
|
|
|
|
|
target_path = read_link(real_path)
|
|
|
|
|