Skip to content

Commit 71b92b4

Browse files
committed
Add metadata support for erofs-utils
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent e75b921 commit 71b92b4

File tree

6 files changed

+590
-0
lines changed

6 files changed

+590
-0
lines changed

src/fetchcode/package.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,22 @@ def get_github_data_for_miniupnp(purl):
242242
)
243243

244244

245+
@router.route("pkg:generic/erofs-utils.*",)
246+
def get_github_data_for_erofs_utils(purl):
247+
"""
248+
Yield `Package` object for erofs-utils package from GitHub.
249+
"""
250+
generic_purl = PackageURL.from_string(purl)
251+
github_repo_purl = PackageURL(
252+
type="github",
253+
namespace="erofs",
254+
name="erofs-utils",
255+
version=generic_purl.version,
256+
)
257+
258+
return GitHubSource.get_package_info(github_repo_purl)
259+
260+
245261
@router.route("pkg:bitbucket/.*")
246262
def get_bitbucket_data_from_purl(purl):
247263
"""
Lines changed: 326 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,326 @@
1+
[
2+
{
3+
"type": "github",
4+
"namespace": "erofs",
5+
"name": "erofs-utils",
6+
"version": "1.1",
7+
"qualifiers": {},
8+
"subpath": null,
9+
"primary_language": "C",
10+
"description": null,
11+
"release_date": "2020-04-13T16:00:42",
12+
"parties": [],
13+
"keywords": [],
14+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
15+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.1.tar.gz",
16+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
17+
"size": null,
18+
"sha1": null,
19+
"md5": null,
20+
"sha256": null,
21+
"sha512": null,
22+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
23+
"code_view_url": "https://github.com/erofs/erofs-utils",
24+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
25+
"copyright": null,
26+
"license_expression": null,
27+
"declared_license": "NOASSERTION",
28+
"notice_text": null,
29+
"root_path": null,
30+
"dependencies": [],
31+
"contains_source_code": null,
32+
"source_packages": [],
33+
"purl": "pkg:github/erofs/erofs-utils@1.1",
34+
"repository_homepage_url": null,
35+
"repository_download_url": null,
36+
"api_data_url": null
37+
},
38+
{
39+
"type": "github",
40+
"namespace": "erofs",
41+
"name": "erofs-utils",
42+
"version": "1.2",
43+
"qualifiers": {},
44+
"subpath": null,
45+
"primary_language": "C",
46+
"description": null,
47+
"release_date": "2020-12-05T19:33:09",
48+
"parties": [],
49+
"keywords": [],
50+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
51+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.2.tar.gz",
52+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
53+
"size": null,
54+
"sha1": null,
55+
"md5": null,
56+
"sha256": null,
57+
"sha512": null,
58+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
59+
"code_view_url": "https://github.com/erofs/erofs-utils",
60+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
61+
"copyright": null,
62+
"license_expression": null,
63+
"declared_license": "NOASSERTION",
64+
"notice_text": null,
65+
"root_path": null,
66+
"dependencies": [],
67+
"contains_source_code": null,
68+
"source_packages": [],
69+
"purl": "pkg:github/erofs/erofs-utils@1.2",
70+
"repository_homepage_url": null,
71+
"repository_download_url": null,
72+
"api_data_url": null
73+
},
74+
{
75+
"type": "github",
76+
"namespace": "erofs",
77+
"name": "erofs-utils",
78+
"version": "1.2.1",
79+
"qualifiers": {},
80+
"subpath": null,
81+
"primary_language": "C",
82+
"description": null,
83+
"release_date": "2021-01-09T20:32:20",
84+
"parties": [],
85+
"keywords": [],
86+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
87+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.2.1.tar.gz",
88+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
89+
"size": null,
90+
"sha1": null,
91+
"md5": null,
92+
"sha256": null,
93+
"sha512": null,
94+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
95+
"code_view_url": "https://github.com/erofs/erofs-utils",
96+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
97+
"copyright": null,
98+
"license_expression": null,
99+
"declared_license": "NOASSERTION",
100+
"notice_text": null,
101+
"root_path": null,
102+
"dependencies": [],
103+
"contains_source_code": null,
104+
"source_packages": [],
105+
"purl": "pkg:github/erofs/erofs-utils@1.2.1",
106+
"repository_homepage_url": null,
107+
"repository_download_url": null,
108+
"api_data_url": null
109+
},
110+
{
111+
"type": "github",
112+
"namespace": "erofs",
113+
"name": "erofs-utils",
114+
"version": "1.3",
115+
"qualifiers": {},
116+
"subpath": null,
117+
"primary_language": "C",
118+
"description": null,
119+
"release_date": "2021-05-31T16:00:00",
120+
"parties": [],
121+
"keywords": [],
122+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
123+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.3.tar.gz",
124+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
125+
"size": null,
126+
"sha1": null,
127+
"md5": null,
128+
"sha256": null,
129+
"sha512": null,
130+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
131+
"code_view_url": "https://github.com/erofs/erofs-utils",
132+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
133+
"copyright": null,
134+
"license_expression": null,
135+
"declared_license": "NOASSERTION",
136+
"notice_text": null,
137+
"root_path": null,
138+
"dependencies": [],
139+
"contains_source_code": null,
140+
"source_packages": [],
141+
"purl": "pkg:github/erofs/erofs-utils@1.3",
142+
"repository_homepage_url": null,
143+
"repository_download_url": null,
144+
"api_data_url": null
145+
},
146+
{
147+
"type": "github",
148+
"namespace": "erofs",
149+
"name": "erofs-utils",
150+
"version": "1.4",
151+
"qualifiers": {},
152+
"subpath": null,
153+
"primary_language": "C",
154+
"description": null,
155+
"release_date": "2021-11-21T16:00:00",
156+
"parties": [],
157+
"keywords": [],
158+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
159+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.4.tar.gz",
160+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
161+
"size": null,
162+
"sha1": null,
163+
"md5": null,
164+
"sha256": null,
165+
"sha512": null,
166+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
167+
"code_view_url": "https://github.com/erofs/erofs-utils",
168+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
169+
"copyright": null,
170+
"license_expression": null,
171+
"declared_license": "NOASSERTION",
172+
"notice_text": null,
173+
"root_path": null,
174+
"dependencies": [],
175+
"contains_source_code": null,
176+
"source_packages": [],
177+
"purl": "pkg:github/erofs/erofs-utils@1.4",
178+
"repository_homepage_url": null,
179+
"repository_download_url": null,
180+
"api_data_url": null
181+
},
182+
{
183+
"type": "github",
184+
"namespace": "erofs",
185+
"name": "erofs-utils",
186+
"version": "1.5",
187+
"qualifiers": {},
188+
"subpath": null,
189+
"primary_language": "C",
190+
"description": null,
191+
"release_date": "2022-06-12T16:00:00",
192+
"parties": [],
193+
"keywords": [],
194+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
195+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.5.tar.gz",
196+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
197+
"size": null,
198+
"sha1": null,
199+
"md5": null,
200+
"sha256": null,
201+
"sha512": null,
202+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
203+
"code_view_url": "https://github.com/erofs/erofs-utils",
204+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
205+
"copyright": null,
206+
"license_expression": null,
207+
"declared_license": "NOASSERTION",
208+
"notice_text": null,
209+
"root_path": null,
210+
"dependencies": [],
211+
"contains_source_code": null,
212+
"source_packages": [],
213+
"purl": "pkg:github/erofs/erofs-utils@1.5",
214+
"repository_homepage_url": null,
215+
"repository_download_url": null,
216+
"api_data_url": null
217+
},
218+
{
219+
"type": "github",
220+
"namespace": "erofs",
221+
"name": "erofs-utils",
222+
"version": "1.6",
223+
"qualifiers": {},
224+
"subpath": null,
225+
"primary_language": "C",
226+
"description": null,
227+
"release_date": "2023-03-11T16:00:00",
228+
"parties": [],
229+
"keywords": [],
230+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
231+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.6.tar.gz",
232+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
233+
"size": null,
234+
"sha1": null,
235+
"md5": null,
236+
"sha256": null,
237+
"sha512": null,
238+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
239+
"code_view_url": "https://github.com/erofs/erofs-utils",
240+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
241+
"copyright": null,
242+
"license_expression": null,
243+
"declared_license": "NOASSERTION",
244+
"notice_text": null,
245+
"root_path": null,
246+
"dependencies": [],
247+
"contains_source_code": null,
248+
"source_packages": [],
249+
"purl": "pkg:github/erofs/erofs-utils@1.6",
250+
"repository_homepage_url": null,
251+
"repository_download_url": null,
252+
"api_data_url": null
253+
},
254+
{
255+
"type": "github",
256+
"namespace": "erofs",
257+
"name": "erofs-utils",
258+
"version": "1.7",
259+
"qualifiers": {},
260+
"subpath": null,
261+
"primary_language": "C",
262+
"description": null,
263+
"release_date": "2023-09-21T03:33:01",
264+
"parties": [],
265+
"keywords": [],
266+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
267+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.7.tar.gz",
268+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
269+
"size": null,
270+
"sha1": null,
271+
"md5": null,
272+
"sha256": null,
273+
"sha512": null,
274+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
275+
"code_view_url": "https://github.com/erofs/erofs-utils",
276+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
277+
"copyright": null,
278+
"license_expression": null,
279+
"declared_license": "NOASSERTION",
280+
"notice_text": null,
281+
"root_path": null,
282+
"dependencies": [],
283+
"contains_source_code": null,
284+
"source_packages": [],
285+
"purl": "pkg:github/erofs/erofs-utils@1.7",
286+
"repository_homepage_url": null,
287+
"repository_download_url": null,
288+
"api_data_url": null
289+
},
290+
{
291+
"type": "github",
292+
"namespace": "erofs",
293+
"name": "erofs-utils",
294+
"version": "1.7.1",
295+
"qualifiers": {},
296+
"subpath": null,
297+
"primary_language": "C",
298+
"description": null,
299+
"release_date": "2023-10-19T23:43:12",
300+
"parties": [],
301+
"keywords": [],
302+
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git",
303+
"download_url": "https://github.com/erofs/erofs-utils/archive/refs/tags/v1.7.1.tar.gz",
304+
"api_url": "https://api.github.com/repos/erofs/erofs-utils",
305+
"size": null,
306+
"sha1": null,
307+
"md5": null,
308+
"sha256": null,
309+
"sha512": null,
310+
"bug_tracking_url": "https://github.com/erofs/erofs-utils/issues",
311+
"code_view_url": "https://github.com/erofs/erofs-utils",
312+
"vcs_url": "git://github.com/erofs/erofs-utils.git",
313+
"copyright": null,
314+
"license_expression": null,
315+
"declared_license": "NOASSERTION",
316+
"notice_text": null,
317+
"root_path": null,
318+
"dependencies": [],
319+
"contains_source_code": null,
320+
"source_packages": [],
321+
"purl": "pkg:github/erofs/erofs-utils@1.7.1",
322+
"repository_homepage_url": null,
323+
"repository_download_url": null,
324+
"api_data_url": null
325+
}
326+
]

0 commit comments

Comments
 (0)