From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Cc: Adolf Belka <adolf.belka@ipfire.org>
Subject: [PATCH] location.in: Fix Bug14047 - Change return to return 3 on line 471
Date: Sat, 12 Sep 2026 12:36:12 +0200 [thread overview]
Message-ID: <20260912103612.16687-1-adolf.belka@ipfire.org> (raw)
- 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
reply other threads:[~2026-09-12 10:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260912103612.16687-1-adolf.belka@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox