On Tue, 16 Jan 2024 20:41:58 +0100 Lucas Nussbaum <[email protected]> wrote: > Source: pycountry > Version: 23.12.11+ds1-1 > Severity: serious > Justification: FTBFS > Tags: trixie sid ftbfs > User: [email protected] > Usertags: ftbfs-20240115 ftbfs-trixie > > Hi, > > During a rebuild of all packages in sid, your package failed to build > on amd64.
This is due to changes in the recent iso-codes upload. the patch below fixes
it so it should work with either version:
--- pycountry-23.12.11+ds1.orig/src/pycountry/__init__.py
+++ pycountry-23.12.11+ds1/src/pycountry/__init__.py
@@ -169,7 +169,8 @@ class SubdivisionHierarchy(pycountry.db.
kw["parent_code"] = None
super().__init__(**kw)
self.country_code = self.code.split("-")[0]
- if self.parent_code is not None:
+ if (self.parent_code is not None and
+ self.country_code != self.parent_code.split("-")[0]):
self.parent_code = f"{self.country_code}-{self.parent_code}"
@property
Please let me know if you don't want an NMU. This will eventually cause
xml2rfc to be removed, so I'll NMU at some point unless you want to take care
of it first (thanks if you do).
Scott K
signature.asc
Description: This is a digitally signed message part.

