Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cloud-init for openSUSE:Factory 
checked in at 2021-08-16 10:08:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cloud-init (Old)
 and      /work/SRC/openSUSE:Factory/.cloud-init.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cloud-init"

Mon Aug 16 10:08:31 2021 rev:82 rq:911577 version:20.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/cloud-init/cloud-init.changes    2021-07-10 
22:54:23.699808324 +0200
+++ /work/SRC/openSUSE:Factory/.cloud-init.new.1899/cloud-init.changes  
2021-08-16 10:12:58.939000205 +0200
@@ -1,0 +2,6 @@
+Thu Aug 12 02:16:08 UTC 2021 - Fusion Future <qydwhotm...@gmail.com>
+
+- Add cloud-init-update-test-characters-in-substitution-unit-test.patch
+  to fix unit test fail in TestGetPackageMirrorInfo::test_substitution.
+
+-------------------------------------------------------------------

New:
----
  cloud-init-update-test-characters-in-substitution-unit-test.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cloud-init.spec ++++++
--- /var/tmp/diff_new_pack.8ynNtg/_old  2021-08-16 10:12:59.594999435 +0200
+++ /var/tmp/diff_new_pack.8ynNtg/_new  2021-08-16 10:12:59.602999426 +0200
@@ -52,6 +52,8 @@
 Patch74:        cloud-init-purge-cache-py-ver-change.patch
 # PATCH-FIX-UPSTREAM 
https://github.com/canonical/cloud-init/commit/f23a4c4262ac11cd75c99fcbfbfe453f4e115f18
 Patch75:        0001-templater-drop-Jinja-Python-2-compatibility-shim.patch
+# PATCH-FIX-UPSTREAM 
https://github.com/canonical/cloud-init/commit/899bfaa9d6bfab1db0df99257628ca1f6febff60
+Patch76:        
cloud-init-update-test-characters-in-substitution-unit-test.patch
 BuildRequires:  fdupes
 BuildRequires:  filesystem
 # pkg-config is needed to find correct systemd unit dir
@@ -161,6 +163,7 @@
 %if 0%{?suse_version} >= 1550
 %patch75 -p1
 %endif
+%patch76 -p1
 # patch in the full version to version.py
 version_pys=$(find . -name version.py -type f)
 [ -n "$version_pys" ] ||

++++++ cloud-init-update-test-characters-in-substitution-unit-test.patch ++++++
--- a/cloudinit/distros/tests/test_init.py
+++ b/cloudinit/distros/tests/test_init.py
@@ -11,10 +11,15 @@ import pytest
 
 from cloudinit.distros import _get_package_mirror_info, LDH_ASCII_CHARS
 
+# In newer versions of Python, these characters will be omitted instead
+# of substituted because of security concerns.
+# See https://bugs.python.org/issue43882
+SECURITY_URL_CHARS = '\n\r\t'
 
 # Define a set of characters we would expect to be replaced
 INVALID_URL_CHARS = [
-    chr(x) for x in range(127) if chr(x) not in LDH_ASCII_CHARS
+    chr(x) for x in range(127)
+    if chr(x) not in LDH_ASCII_CHARS + SECURITY_URL_CHARS
 ]
 for separator in [":", ".", "/", "#", "?", "@", "[", "]"]:
     # Remove from the set characters that either separate hostname parts (":",

Reply via email to