* [PATCH] location.in: Fix Bug14047 - Change return to return 3 on line 471
@ 2026-09-12 10:36 Adolf Belka
0 siblings, 0 replies; only message in thread
From: Adolf Belka @ 2026-09-12 10:36 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- 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(-)
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)
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-12 10:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12 10:36 [PATCH] location.in: Fix Bug14047 - Change return to return 3 on line 471 Adolf Belka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox