diff options
| author | Petr Štetiar <ynezz@true.cz> | 2022-10-19 15:46:45 +0200 |
|---|---|---|
| committer | Petr Štetiar <ynezz@true.cz> | 2023-11-01 11:14:39 +0000 |
| commit | 8562c65ff8aae3899cdb190319709500b7651492 (patch) | |
| tree | 60dbbb54c819cfbca5af75dd639a309b228d8336 /scripts/metadata.pm | |
| parent | 33b3fea70245068030ef64b6d7c5b344d08ba9d8 (diff) | |
| download | upstream-8562c65ff8aae3899cdb190319709500b7651492.tar.gz upstream-8562c65ff8aae3899cdb190319709500b7651492.tar.bz2 upstream-8562c65ff8aae3899cdb190319709500b7651492.zip | |
package-metadata: add CPE information to JSON package manifests
Common Platform Enumeration (CPE) is a structured naming scheme for
information technology systems, software, and packages.
In order for the information to be processed further, it should also be
available in JSON package manifests.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'scripts/metadata.pm')
| -rw-r--r-- | scripts/metadata.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index ee5a2945ca7..e716f75d102 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -256,6 +256,7 @@ sub parse_package_metadata($) { /^Source: \s*(.+)\s*$/ and $pkg->{source} = $1; /^License: \s*(.+)\s*$/ and $pkg->{license} = $1; /^LicenseFiles: \s*(.+)\s*$/ and $pkg->{licensefiles} = $1; + /^CPE-ID: \s*(.+)\s*$/ and $pkg->{cpe_id} = $1; /^Default: \s*(.+)\s*$/ and $pkg->{default} = $1; /^Provides: \s*(.+)\s*$/ and do { my @vpkg = split /\s+/, $1; |
