]>
Commit | Line | Data |
---|---|---|
99659ce5 SS |
1 | commit 1be0681cc4bcc006369e69d90dc4439eaa6f58d5 |
2 | Author: Stefan Schantl <stefan.schantl@ipfire.org> | |
3 | Date: Wed Jul 29 18:50:20 2020 +0200 | |
4 | ||
5 | location: Provide a return code if the database does not need to be | |
6 | updated. | |
7 | ||
8 | Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> | |
9 | ||
10 | diff --git a/src/python/location.in b/src/python/location.in | |
11 | index 5211b28..8cdd140 100644 | |
12 | --- a/src/python/location.in | |
13 | +++ b/src/python/location.in | |
14 | @@ -416,7 +416,7 @@ class CLI(object): | |
15 | _("The datase has recently be updated recently (%s)") % \ | |
16 | format_timedelta(now - t), | |
17 | ) | |
18 | - return | |
19 | + return 3 | |
20 | ||
21 | # Fetch the timestamp we need from DNS | |
22 | t = location.discover_latest_version() |