-
Notifications
You must be signed in to change notification settings - Fork 463
/
gmp.py
49 lines (48 loc) · 1.44 KB
/
gmp.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright (C) 2022 Orange
# SPDX-License-Identifier: GPL-3.0-or-later
mapping_test_data = [
{"product": "gmp", "version": "6.1.2", "version_strings": ["gmp-6.1.2"]},
{
"product": "gmp",
"version": "6.2.0",
"version_strings": ["libgmp.so.10.4.0-6.2.0"],
},
{
"product": "gmp",
"version": "6.0.0",
"version_strings": [
"6.0.0\n0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
],
},
{
"product": "gmp",
"version": "4.3.1",
"version_strings": ["4.3.1\n0123456789abcdefghijklmnopqrstuvwxyz"],
},
]
package_test_data = [
{
"url": "http://rpmfind.net/linux/centos-stream/9-stream/BaseOS/aarch64/os/Packages/",
"package_name": "gmp-6.2.0-10.el9.aarch64.rpm",
"product": "gmp",
"version": "6.2.0",
},
{
"url": "http://ftp.fr.debian.org/debian/pool/main/g/gmp/",
"package_name": "libgmp10_6.0.0+dfsg-6_amd64.deb",
"product": "gmp",
"version": "6.0.0",
},
{
"url": "http://ftp.fr.debian.org/debian/pool/main/g/gmp/",
"package_name": "libgmp10_6.2.1+dfsg-1+deb11u1_mipsel.deb",
"product": "gmp",
"version": "6.2.1",
},
{
"url": "https://downloads.openwrt.org/releases/packages-19.07/x86_64/base/",
"package_name": "libgmp10_6.1.2-2_x86_64.ipk",
"product": "gmp",
"version": "6.1.2",
},
]