From patchwork Sat Sep 12 10:36:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 10188 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4hhnrq309Pz3wqL for ; Sat, 12 Sep 2026 10:36:27 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "YE1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4hhnrq2Dhqz5h8 for ; Sat, 12 Sep 2026 10:36:27 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4hhnrq1Qv9z2xYR for ; Sat, 12 Sep 2026 10:36:27 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4hhnrm4N6cz2xHd for ; Sat, 12 Sep 2026 10:36:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4hhnrm0qMJzd8; Sat, 12 Sep 2026 10:36:24 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1789209384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eUINevKurt+ZVovyZdQGeYf+zs2WFj9MV+HWKfC7PX0=; b=rFQtaDYQpqaSuJdmmPNN/Fgryf4b0WoWktJYwArpg0gPRMFgKNKdupaOYxNQRybt65p24/ tiAyD5Igix4YTUBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1789209384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eUINevKurt+ZVovyZdQGeYf+zs2WFj9MV+HWKfC7PX0=; b=cNB/DvmOL4EPslwPOJqqQXFWE4dm9YmNDwHBdC+NeETDNtGTUaBVNCNuMVhnX+zAerrwCv WylaPpknMD/ZnL7K3Xli9UqCcCkoD3jWnQAjkv6yUf1FPtnDgYtSO2KqT0Apkkdn1sz+Qm A7561viVMZ+RW82walUyJLd1EtKSO0NpHDxaB0iYfaEPziT6tCjBbiAWRTmkyoRx+dxCdo f+pYjzwL/E5Z9veVTFuxna1Wn1tSxYHfISqkuRWb+2WaMH/BMgRFjkfcYxm2aKoTH9qK/c Yq64BGlqe9AHAzCYd4ktTJENKqyTndN4fbaB3reCDEIP5lUTpSXBRN/hXLzcCQ== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] location.in: Fix Bug14047 - Change return to return 3 on line 471 Date: Sat, 12 Sep 2026 12:36:12 +0200 Message-ID: <20260912103612.16687-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 - 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 --- 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)