()
| 195 | return command |
| 196 | |
| 197 | def 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() |
nothing calls this directly
no test coverage detected