summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Röhling <roehling@debian.org>2022-04-11 20:23:41 +0200
committerTimo Röhling <roehling@debian.org>2023-11-15 17:55:27 +0100
commit24316293eaf2b70f95c810f970011b4ea9edce18 (patch)
treeb8fbd33ccd80e70a7c6534fc771a46c2fb5d7baa
parent0d09d18cdfc275a1bcdb3814a6dcc772f2553908 (diff)
Disable automatic update check
Gbp-Pq: Name 0005-Disable-automatic-update-check.patch
-rw-r--r--pwnlib/update.py11
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.