Hi,

The patch is trivial:
 minidinstall/DebianSigVerifier.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/minidinstall/DebianSigVerifier.py
b/minidinstall/DebianSigVerifier.py
index 18082d1..8627697 100644
--- a/minidinstall/DebianSigVerifier.py
+++ b/minidinstall/DebianSigVerifier.py
@@ -23,9 +23,9 @@ from .GPGSigVerifier import *
 
 class DebianSigVerifier(GPGSigVerifier):
     _dpkg_ring = '/etc/dpkg/local-keyring.gpg'
-    keyrings_r_ok = []
 
     def __init__(self, keyrings=None, extra_keyrings=None):
+        self.keyrings_r_ok = []
         if not keyrings:
             keyrings = ['/usr/share/keyrings/debian-keyring.gpg',
'/usr/share/keyrings/debian-keyring.pgp']
         if os.access(self._dpkg_ring, os.R_OK):
-- 
2.39.5

From 94a6981c70c988237db3f9977045de59b513ae65 Mon Sep 17 00:00:00 2001
From: Oron Peled <[email protected]>
Date: Mon, 5 Jan 2026 14:12:10 +0200
Subject: [PATCH] Fix the root cause of duplicate keyrings:

* It's the result of Debian commit ad12a309987683f89d7e6ac70defbc38b9d44c81:
  - This commit was done for Debian bug #1027263
  - But the new code used class variable "keyrings_r_ok"
    (so each instanciation appended the keyrings to the same list)

* The fix to the regression is simple:
  - Just use an object member (self.keyrings_r_ok)
  - Created new Debian bug #1124289 for fixing the regression
  - Locally reverted the previous workaround
---
 minidinstall/DebianSigVerifier.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/minidinstall/DebianSigVerifier.py b/minidinstall/DebianSigVerifier.py
index 18082d1..8627697 100644
--- a/minidinstall/DebianSigVerifier.py
+++ b/minidinstall/DebianSigVerifier.py
@@ -23,9 +23,9 @@ from .GPGSigVerifier import *
 
 class DebianSigVerifier(GPGSigVerifier):
     _dpkg_ring = '/etc/dpkg/local-keyring.gpg'
-    keyrings_r_ok = []
 
     def __init__(self, keyrings=None, extra_keyrings=None):
+        self.keyrings_r_ok = []
         if not keyrings:
             keyrings = ['/usr/share/keyrings/debian-keyring.gpg', '/usr/share/keyrings/debian-keyring.pgp']
         if os.access(self._dpkg_ring, os.R_OK):
-- 
2.39.5

Reply via email to