]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/libloc-0.9.3-location-provide-return-code.patch
libvirt: add libtirpc to dependencies
[ipfire-2.x.git] / src / patches / libloc-0.9.3-location-provide-return-code.patch
CommitLineData
99659ce5
SS
1commit 1be0681cc4bcc006369e69d90dc4439eaa6f58d5
2Author: Stefan Schantl <stefan.schantl@ipfire.org>
3Date: 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
10diff --git a/src/python/location.in b/src/python/location.in
11index 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()