Skip to content

Commit 7bb3c5b

Browse files
committed
Removed patches linking
1 parent 03a1d4f commit 7bb3c5b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

flutter_workspace.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -876,29 +876,6 @@ def load_remote_platform(remote, app_folder):
876876
else:
877877
print(f'No configs folder found in remote platform repo: {remote_config_folder}')
878878

879-
# link patches in app/<repo name>/patches to patches/
880-
remote_patches_folder = os.path.join(git_folder, 'patches')
881-
patches_folder = os.path.join(os.getcwd(), 'patches')
882-
if os.path.exists(remote_patches_folder):
883-
if not os.path.exists(patches_folder):
884-
os.makedirs(patches_folder)
885-
886-
import glob
887-
for filename in sorted(glob.glob(os.path.join(remote_patches_folder, '*'))):
888-
889-
filepath = os.path.join(os.getcwd(), filename)
890-
_, tail = os.path.split(filename)
891-
892-
dest_filepath = os.path.join(patches_folder, tail)
893-
894-
if os.path.exists(dest_filepath):
895-
print(f'Patch file already exists! skipping: {dest_filepath}')
896-
else:
897-
print(f'Linking patch file: {dest_filepath}')
898-
os.symlink(filepath, dest_filepath)
899-
else:
900-
print(f'No patches folder found in remote platform repo: {remote_patches_folder}')
901-
902879

903880
def get_workspace_repos(base_folder, config):
904881
""" Clone GIT repos referenced in config repos dict to base_folder """

0 commit comments

Comments
 (0)