]> git.ipfire.org Git - location/libloc.git/commitdiff
location: Provide a return code if the database does not need to be updated.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 29 Jul 2020 16:51:59 +0000 (18:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Aug 2020 21:28:35 +0000 (21:28 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location.in

index 5211b2837116174c52235b8a1ef681ba146f439a..8cdd1409e34b176d9bb5f832ffc697a3975f61fe 100644 (file)
@@ -416,7 +416,7 @@ class CLI(object):
                                        _("The datase has recently be updated recently (%s)") % \
                                                format_timedelta(now - t),
                                )
-                               return
+                               return 3
 
                # Fetch the timestamp we need from DNS
                t = location.discover_latest_version()