summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2024-01-06 18:48:46 +0100
committerPaul Spooren <mail@aparcar.org>2024-01-08 14:06:38 +0100
commit751791d545087ceee10c680ec8b5590b3554d082 (patch)
treef24bac22c553cda35df98620cd8501ff7fedcac6 /scripts
parent04ed95d1f92058ec26826791e309ec3ae09ee625 (diff)
downloadopenwrt-751791d545087ceee10c680ec8b5590b3554d082.tar.gz
openwrt-751791d545087ceee10c680ec8b5590b3554d082.tar.bz2
openwrt-751791d545087ceee10c680ec8b5590b3554d082.zip
packages: store URL in Manifest
The manifest should provide as much information as possible about the package, including the project URL. With this commit the URL is stored as it's own attribute instead of at the end of the description. Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index 587ce7207d..ecfe42c0bc 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -257,6 +257,7 @@ sub parse_package_metadata($) {
/^License: \s*(.+)\s*$/ and $pkg->{license} = $1;
/^LicenseFiles: \s*(.+)\s*$/ and $pkg->{licensefiles} = $1;
/^CPE-ID: \s*(.+)\s*$/ and $pkg->{cpe_id} = $1;
+ /^URL: \s*(.+)\s*$/ and $pkg->{url} = $1;
/^ABI-Version: \s*(.+)\s*$/ and $pkg->{abi_version} = $1;
/^Default: \s*(.+)\s*$/ and $pkg->{default} = $1;
/^Provides: \s*(.+)\s*$/ and do {
@@ -344,6 +345,7 @@ sub parse_package_manifest_metadata($) {
/^Section:\s*(.+)\s*$/ and $pkg->{section} = $1;
/^SourceDateEpoch: \s*(.+)\s*$/ and $pkg->{sourcedateepoch} = $1;
/^CPE-ID:\s*(.+)\s*$/ and $pkg->{cpe_id} = $1;
+ /^URL:\s*(.+)\s*$/ and $pkg->{url} = $1;
/^Architecture:\s*(.+)\s*$/ and $pkg->{architecture} = $1;
/^Installed-Size:\s*(.+)\s*$/ and $pkg->{installedsize} = $1;
/^Filename:\s*(.+)\s*$/ and $pkg->{filename} = $1;