Added an option to disable the auto update of deps (#2380)

Co-authored-by: B1N4RY-P4R45173 <kopakaajay123@gmail.com>
pull/2501/head
卂フ卂ㄚ Ҝㄖ卩卩卂Ҝ卂 1 year ago committed by GitHub
parent 68898a7c00
commit cf9f3185fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -168,8 +168,9 @@ def main() -> None:
print(f"Cannot find Pwndbg virtualenv directory: {venv_path}. Please re-run setup.sh")
sys.stdout.flush()
os._exit(1)
update_deps(src_root, venv_path)
no_auto_update = os.getenv("PWNDBG_NO_AUTOUPDATE")
if no_auto_update is None:
update_deps(src_root, venv_path)
fixup_paths(src_root, venv_path)
# Force UTF-8 encoding (to_string=True to skip output appearing to the user)

@ -230,4 +230,6 @@ if [ -z "$UPDATE_MODE" ]; then
# Load Pwndbg into GDB on every launch.
echo "source $PWD/gdbinit.py" >> ~/.gdbinit
echo "[*] Added 'source $PWD/gdbinit.py' to ~/.gdbinit so that Pwndbg will be loaded on every launch of GDB."
echo "Please set the PWNDBG_NO_AUTOUPDATE environment variable to any value to disable the automatic updating of dependencies when Pwndbg is loaded."
fi

Loading…
Cancel
Save