MCPcopy
hub / github.com/Gallopsled/pwntools / check_automatically

Function check_automatically

pwnlib/update.py:197–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 return command
196
197def check_automatically():
198 xdg_config_home = os.environ.get('XDG_CONFIG_HOME') or "~/.config"
199
200 if should_check():
201 message = ["Checking for new versions of %s" % package_name]
202 message += ["To disable this functionality, set the contents of %s to 'never' (old way)." % cache_file()]
203 message += ["Or add the following lines to ~/.pwn.conf or %s/pwn.conf (or /etc/pwn.conf system-wide):" % xdg_config_home]
204 message += ["""\
205 [update]
206 interval=never"""]
207 log.info("\n".join(message))
208 perform_check()

Callers

nothing calls this directly

Calls 5

should_checkFunction · 0.85
cache_fileFunction · 0.85
perform_checkFunction · 0.85
infoMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected