Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix variable loss #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion update_privacy_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,16 @@ def main():
search_deps = user_input("Do you want to search for dependencies 是否要搜索套件是否有在列表中 (y/n): ").lower() == 'y'
if search_deps:
exclude_dirs_deps_choice = user_input("Do you want to exclude certain directories for dependencies search 您是否要為套件搜索排除某些目錄 (y/n): ").lower() == 'y'
excluded_dirs_deps = []

if exclude_dirs_deps_choice:
excluded_dirs_deps = user_input("Please enter directories to exclude for dependencies search (separated by space) 請為套件搜索輸入要排除的目錄(用空格分隔): ").split()
else:
excluded_dirs_deps = []

download_privacy_info = user_input("Do you want to download privacy_info for dependencies 是否要下載套件的 privacy_info (y/n): ").lower() == 'y'
else:
excluded_dirs_deps = []
download_privacy_info = False

# Execute file search, then update PrivacyInfo.xcprivacy file and generate report
found_patterns, found_deps, search_tracking_auth = search_files(args.directory, excluded_dirs_api, excluded_dirs_deps, search_apis, search_deps)
Expand Down
7 changes: 6 additions & 1 deletion update_privacy_info_without_UTF8.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,16 @@ def main():
search_deps = user_input("Do you want to search for dependencies 是否要搜索套件是否有在列表中 (y/n): ").lower() == 'y'
if search_deps:
exclude_dirs_deps_choice = user_input("Do you want to exclude certain directories for dependencies search 您是否要為套件搜索排除某些目錄 (y/n): ").lower() == 'y'
excluded_dirs_deps = []

if exclude_dirs_deps_choice:
excluded_dirs_deps = user_input("Please enter directories to exclude for dependencies search (separated by space) 請為套件搜索輸入要排除的目錄(用空格分隔): ").split()
else:
excluded_dirs_deps = []

download_privacy_info = user_input("Do you want to download privacy_info for dependencies 是否要下載套件的 privacy_info (y/n): ").lower() == 'y'
else:
excluded_dirs_deps = []
download_privacy_info = False

# Execute file search, then update PrivacyInfo.xcprivacy file and generate report
found_patterns, found_deps, search_tracking_auth = search_files(args.directory, excluded_dirs_api, excluded_dirs_deps, search_apis, search_deps)
Expand Down