diff options
author | Timo Röhling <roehling@debian.org> | 2022-04-11 20:23:41 +0200 |
---|---|---|
committer | Timo Röhling <roehling@debian.org> | 2024-02-23 13:44:05 +0100 |
commit | 551a613924c78ac0aad813ae75ba712275501d31 (patch) | |
tree | 41923d114e22701b33fd92ba28ce31ec85b4373f | |
parent | a45f35eeb2fc228e8c1be30ef59d83c83e4033df (diff) |
Disable automatic update check
Gbp-Pq: Name 0005-Disable-automatic-update-check.patch
-rw-r--r-- | pwnlib/update.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/pwnlib/update.py b/pwnlib/update.py index dd8f0ed..4805bf7 100644 --- a/pwnlib/update.py +++ b/pwnlib/update.py @@ -117,15 +117,8 @@ def last_check(): def should_check(): """Return True if we should check for an update""" - filename = cache_file() - - if not filename: - return False - - if disabled or read(filename).strip() == b'never': - return False - - return time.time() > (last_check() + update_freq) + # Never check automatically for Debian + return False def perform_check(prerelease=current_version.is_prerelease): """Perform the update check, and report to the user. |