Skip to content

Commit bad4bc4

Browse files
authored
[3.13] gh-131261: generate_sbom.py: Exclude the refresh script from SBOM (GH-131359) (GH-144625)
- generate_sbom.py: Exclude the refresh script from SBOM - Modules/expat/refresh.sh: Expand the list of manual steps (cherry picked from commit 51d3099)
1 parent de105e7 commit bad4bc4

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

Misc/sbom.spdx.json

Lines changed: 0 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/expat/refresh.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,11 @@ rm libexpat.tar.gz
5454
# Step 3: Add the namespacing include to expat_external.h
5555
sed -i 's/# define Expat_External_INCLUDED 1/&\n\/* Namespace external symbols to allow multiple libexpat version to\n co-exist. \*\/\n#include "pyexpatns.h"/' expat_external.h
5656

57-
echo "Updated; verify all is okay using git diff and git status."
57+
echo "
58+
Updated! next steps:
59+
- Verify all is okay:
60+
git diff
61+
git status
62+
- Regenerate the sbom file
63+
make regen-sbom
64+
"

Tools/build/generate_sbom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PackageFiles(typing.NamedTuple):
6464
exclude=[
6565
"Modules/expat/expat_config.h",
6666
"Modules/expat/pyexpatns.h",
67-
"Modules/_hacl/refresh.sh",
67+
"Modules/expat/refresh.sh",
6868
]
6969
),
7070
"macholib": PackageFiles(

0 commit comments

Comments
 (0)