Package: release.debian.org Severity: normal Tags: trixie X-Debbugs-Cc: [email protected] Control: affects -1 + src:units User: [email protected] Usertags: pu
Dear release team, Please consider the attached update to the units package for trixie. [ Reason ] units can convert currencies; it ships files containing currency exchange rates, prices for various precious metals, and consumer price index data, along with a program to update them from online resources (units_cur). One of those online resources changed its URL format, which breaks units_cur completely (<https://bugs.debian.org/1128412>). [ Impact ] Users can no longer update currency information. [ Tests ] Since this relies on external resources, it isn’t covered by automated tests in Debian; however I have checked that the proposed update fixes the issue. [ Risks ] The change only updates two URLs, the risk is minimal. [ Checklist ] [x] *all* changes are documented in the d/changelog [x] I reviewed all changes and I approve them [x] attach debdiff against the package in (old)stable [x] the issue is verified as fixed in unstable [ Changes ] Two URLs now need trailing slashes: https://services.packetizer.com/spotprices becomes https://services.packetizer.com/spotprices/ and https://services.packetizer.com/btc becomes https://services.packetizer.com/btc/ Regards, Stephen
diff -Nru units-2.24/debian/changelog units-2.24/debian/changelog --- units-2.24/debian/changelog 2024-12-06 20:45:27.000000000 +0100 +++ units-2.24/debian/changelog 2026-02-27 12:13:56.000000000 +0100 @@ -1,3 +1,9 @@ +units (2.24-1+deb13u1) trixie; urgency=medium + + * Switch to new packetizer.com URLs in units_cur. Closes: #1128412. + + -- Stephen Kitt <[email protected]> Fri, 27 Feb 2026 12:13:56 +0100 + units (2.24-1) unstable; urgency=medium * New upstream release. diff -Nru units-2.24/debian/patches/packetizer.patch units-2.24/debian/patches/packetizer.patch --- units-2.24/debian/patches/packetizer.patch 1970-01-01 01:00:00.000000000 +0100 +++ units-2.24/debian/patches/packetizer.patch 2026-02-27 12:13:56.000000000 +0100 @@ -0,0 +1,17 @@ +Description: Adjust to new packetizer URLs +Author: Stephen Kitt <[email protected]> +Bug-Debian: https://bugs.debian.org/1128412 + +--- a/units_cur ++++ b/units_cur +@@ -556,8 +556,8 @@ + # Get precious metals data and bitcoin + # + +-metals = getjson('https://services.packetizer.com/spotprices',{'f':'json'}) +-bitcoin = getjson('https://services.packetizer.com/btc',{'f':'json'}) ++metals = getjson('https://services.packetizer.com/spotprices/',{'f':'json'}) ++bitcoin = getjson('https://services.packetizer.com/btc/',{'f':'json'}) + + metallist = ['']*len(validmetals) + for metal, price in metals.items(): diff -Nru units-2.24/debian/patches/series units-2.24/debian/patches/series --- units-2.24/debian/patches/series 2024-12-06 20:45:27.000000000 +0100 +++ units-2.24/debian/patches/series 2026-02-27 12:13:56.000000000 +0100 @@ -1 +1,2 @@ no-currency-update-during-build.patch +packetizer.patch

