[Git][qa/jenkins.debian.net][master] reproducible Debian: fix yaml loading for pyyaml 6.0. (as seen in #1034116)

Holger Levsen (@holger) gitlab at salsa.debian.org
Sun Jul 23 15:46:35 BST 2023



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
2e24c819 by Holger Levsen at 2023-07-23T16:45:48+02:00
reproducible Debian: fix yaml loading for pyyaml 6.0. (as seen in #1034116)

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- bin/reproducible_create_meta_pkg_sets.sh
- bin/reproducible_notes.py


Changes:

=====================================
bin/reproducible_create_meta_pkg_sets.sh
=====================================
@@ -37,7 +37,7 @@ import sys
 import yaml
 try:
 	with open(sys.argv[1]) as fd:
-		manifest = yaml.load(fd)
+		manifest = yaml.safe_load(fd)
 
 	seen = set()
 	for pkg in (manifest['packages']['binary']):


=====================================
bin/reproducible_notes.py
=====================================
@@ -37,7 +37,7 @@ def load_notes():
       'package_name':<etc> }
     """
     with open(NOTES) as fd:
-        original = yaml.load(fd)
+        original = yaml.safe_load(fd)
     log.info("Notes loaded. There are " + str(len(original)) +
              " packages listed.")
     notes = {}
@@ -108,7 +108,7 @@ def load_issues():
     { 'issue_name': {'description': 'blabla', 'url': 'blabla'} }
     """
     with open(ISSUES) as fd:
-        issues = yaml.load(fd)
+        issues = yaml.safe_load(fd)
     log.info("Issues loaded. There are " + str(len(issues)) + " issues listed.")
     return issues
 



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/2e24c819ffdb6512fbd7fba592c50da3b45e71ff

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/2e24c819ffdb6512fbd7fba592c50da3b45e71ff
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20230723/70ef2eab/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list