-
Notifications
You must be signed in to change notification settings - Fork 463
/
curl.py
35 lines (34 loc) · 1.24 KB
/
curl.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: GPL-3.0-or-later
mapping_test_data = [
{"product": "curl", "version": "7.34.0", "version_strings": ["curl 7.34.0"]},
{"product": "curl", "version": "7.34.0", "version_strings": ["curl-7.34.0"]},
{"product": "curl", "version": "7.34.0", "version_strings": ["curl/7.34.0"]},
]
package_test_data = [
{
"url": "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/20/Everything/x86_64/os/Packages/c/",
"package_name": "curl-7.32.0-3.fc20.x86_64.rpm",
"product": "curl",
"version": "7.32.0",
},
{
"url": "https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/aarch64/9.1/All/",
"package_name": "curl-7.77.0.tgz",
"product": "curl",
"version": "7.77.0",
"other_products": ["libcurl"],
},
{
"url": "http://ftp.br.debian.org/debian/pool/main/c/curl/",
"package_name": "curl_7.52.1-5+deb9u10_amd64.deb",
"product": "curl",
"version": "7.52.1",
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/base/",
"package_name": "curl_7.66.0-3_x86_64.ipk",
"product": "curl",
"version": "7.66.0",
},
]