add_files_to_view: flip incorrect default (#29700)
This commit is contained in:
parent
f8224f284c
commit
1b55057f36
@ -216,7 +216,7 @@ def view_file_conflicts(self, view, merge_map):
|
||||
|
||||
return conflicts
|
||||
|
||||
def add_files_to_view(self, view, merge_map, skip_if_exists=False):
|
||||
def add_files_to_view(self, view, merge_map, skip_if_exists=True):
|
||||
bin_dir = self.spec.prefix.bin
|
||||
python_prefix = self.extendee_spec.prefix
|
||||
python_is_external = self.extendee_spec.external
|
||||
|
@ -810,7 +810,7 @@ def skip_list(file):
|
||||
full_src = os.path.join(src_root, src_rel)
|
||||
full_dst = os.path.join(self._root, dst_rel)
|
||||
merge_map[full_src] = full_dst
|
||||
spec.package.add_files_to_view(self, merge_map, skip_if_exists=True)
|
||||
spec.package.add_files_to_view(self, merge_map, skip_if_exists=False)
|
||||
|
||||
# Finally create the metadata dirs.
|
||||
self.link_metadata(specs)
|
||||
|
@ -479,7 +479,7 @@ def view_file_conflicts(self, view, merge_map):
|
||||
"""
|
||||
return set(dst for dst in merge_map.values() if os.path.lexists(dst))
|
||||
|
||||
def add_files_to_view(self, view, merge_map, skip_if_exists=False):
|
||||
def add_files_to_view(self, view, merge_map, skip_if_exists=True):
|
||||
"""Given a map of package files to destination paths in the view, add
|
||||
the files to the view. By default this adds all files. Alternative
|
||||
implementations may skip some files, for example if other packages
|
||||
|
@ -1365,7 +1365,7 @@ def deactivate(self, ext_pkg, view, **args):
|
||||
self.spec
|
||||
))
|
||||
|
||||
def add_files_to_view(self, view, merge_map, skip_if_exists=False):
|
||||
def add_files_to_view(self, view, merge_map, skip_if_exists=True):
|
||||
bin_dir = self.spec.prefix.bin if sys.platform != 'win32'\
|
||||
else self.spec.prefix
|
||||
for src, dst in merge_map.items():
|
||||
|
Loading…
Reference in New Issue
Block a user