From eb738f52750451fc1083f38f8c5cb77220e49d84 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sun, 26 Oct 2014 16:57:33 +0000 Subject: generate list of license information for packages Many packages define already metadata about their license (PKG_LICENSE), but this is only included in the ipk files. This change allows to create the information also on the build-host, to get an overview on the used licenses. In the full list, also all packages without this info are shown Signed-off-by: Thomas Langer SVN-Revision: 43070 --- scripts/metadata.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/metadata.pm') diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 16acb8ea8f..fc8657322e 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -97,6 +97,8 @@ sub parse_package_metadata($) { /^Submenu: \s*(.+)\s*$/ and $pkg->{submenu} = $1; /^Submenu-Depends: \s*(.+)\s*$/ and $pkg->{submenudep} = $1; /^Source: \s*(.+)\s*$/ and $pkg->{source} = $1; + /^License: \s*(.+)\s*$/ and $pkg->{license} = $1; + /^LicenseFiles: \s*(.+)\s*$/ and $pkg->{licensefiles} = $1; /^Default: \s*(.+)\s*$/ and $pkg->{default} = $1; /^Provides: \s*(.+)\s*$/ and do { my @vpkg = split /\s+/, $1; -- cgit v1.2.3