Skip to content

Commit f95bd4a

Browse files
authored
Merge branch 'main' into jacobcalvert/add-rpm-and-deb-clarification
2 parents cf00d85 + d0b8330 commit f95bd4a

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

ADOPTERS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [CycloneDX](https://github.com/CycloneDX): A lightweight software
66
bill-of-material (SBOM) specification
7+
- [Dark Sky Technology (Bulletproof Trust)](https://www.darkskytechnology.com/bulletproof-trust): A software assurance platform to measure risk and detect threats in critical open-source supply chains.
78
- [Ecosyste.ms](https://ecosyste.ms): Indexes and analyzes open source packages, ecosystems, and their dependencies.
89
- [GitHub Dependency Submission API](https://docs.github.com/en/rest/dependency-graph/dependency-submission): allows third-party tools
910
to submit dependency data to GitHub for inclusion in a repository's dependency graph.

docs/how-to-parse.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ To parse a `purl` string in its components:
1111
- Split the `purl` string once from right on '#'
1212

1313
- The left side is the `remainder`
14-
- Strip the right side from leading and trailing '/'
15-
- Split this on '/'
16-
- Discard any empty string segment from that split
14+
- Split the right side on `/`
1715
- Percent-decode each segment
18-
- Discard any '.' or '..' segment from that split
1916
- UTF-8-decode each segment if needed in your programming language
17+
- Discard any segment that is empty, or equal to `.` or `..`
18+
- Report an error if any segment contains a slash `/`
2019
- Join segments back with a '/'
2120
- This is the `subpath`
2221

tests/types/rpm-test.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@
108108
"description": "Parse test for PURL type: rpm",
109109
"test_group": "base",
110110
"test_type": "parse",
111-
"input": "pkg:rpm/[email protected]?arch=i686&epoch=1&distro=fedora-25",
111+
"input": "pkg:rpm/fedora/[email protected]?arch=i686&epoch=1&distro=fedora-25",
112112
"expected_output": {
113113
"type": "rpm",
114-
"namespace": null,
114+
"namespace": "fedora",
115115
"name": "centerim",
116116
"version": "4.22.10-1.el6",
117117
"qualifiers": {
@@ -128,8 +128,8 @@
128128
"description": "Roundtrip test for PURL type: rpm",
129129
"test_group": "base",
130130
"test_type": "roundtrip",
131-
"input": "pkg:rpm/[email protected]?arch=i686&epoch=1&distro=fedora-25",
132-
"expected_output": "pkg:rpm/[email protected]?arch=i686&distro=fedora-25&epoch=1",
131+
"input": "pkg:rpm/fedora/[email protected]?arch=i686&epoch=1&distro=fedora-25",
132+
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i686&distro=fedora-25&epoch=1",
133133
"expected_failure": false,
134134
"expected_failure_reason": null
135135
},
@@ -139,7 +139,7 @@
139139
"test_type": "build",
140140
"input": {
141141
"type": "rpm",
142-
"namespace": null,
142+
"namespace": "fedora",
143143
"name": "centerim",
144144
"version": "4.22.10-1.el6",
145145
"qualifiers": {
@@ -149,7 +149,7 @@
149149
},
150150
"subpath": null
151151
},
152-
"expected_output": "pkg:rpm/[email protected]?arch=i686&distro=fedora-25&epoch=1",
152+
"expected_output": "pkg:rpm/fedora/[email protected]?arch=i686&distro=fedora-25&epoch=1",
153153
"expected_failure": false,
154154
"expected_failure_reason": null
155155
}

types/mlflow-definition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://packageurl.org/schemas/purl-type-definition.schema-1.0.json",
33
"$id": "https://packageurl.org/types/mlflow-definition.json",
44
"type": "mlflow",
5-
"type_name": "",
5+
"type_name": "MLflow",
66
"description": "MLflow ML models (Azure ML, Databricks, etc.)",
77
"repository": {
88
"use_repository": true,

0 commit comments

Comments
 (0)