location.in: Fix Bug14047 - Change return to return 3 on line 471

Message ID 20260912103612.16687-1-adolf.belka@ipfire.org
State New
Headers
Series location.in: Fix Bug14047 - Change return to return 3 on line 471 |

Commit Message

Adolf Belka 12 Sep 2026, 10:36 a.m. UTC
- This now makes location return 3 if the database is alreadt at the latest version. This
   is then in line with the man page wording

Fixes: Bug14047
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 src/scripts/location.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/src/scripts/location.in b/src/scripts/location.in
index a93a8d3..bd91bb1 100644
--- a/src/scripts/location.in
+++ b/src/scripts/location.in
@@ -468,7 +468,7 @@  class CLI(object):
 		# Check the version of the local database
 		if db and t and db.created_at >= t:
 			log.info("Already on the latest version")
-			return
+			return 3
 
 		# Download the database into the correct directory
 		tmpdir = os.path.dirname(ns.database)