[openwrt/openwrt] scripts: store maintainer in package metadata

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 24 00:43:10 PDT 2021


aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/108901fffb66b60f307d959377852300caa8bbda

commit 108901fffb66b60f307d959377852300caa8bbda
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Thu Sep 16 23:51:50 2021 -1000

    scripts: store maintainer in package metadata
    
    The maintainer could be usable for downstream tooling, so start storing
    it in the metadata.
    
    Signed-off-by: Paul Spooren <mail at aparcar.org>
---
 scripts/metadata.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index 5fbb77a36c..f252c5309c 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -290,6 +290,7 @@ sub parse_package_metadata($) {
 		};
 		/^Config:\s*(.*)\s*$/ and $pkg->{config} = "$1\n".get_multiline(*FILE, "\t");
 		/^Prereq-Check:/ and $pkg->{prereq} = 1;
+		/^Maintainer: \s*(.+)\s*$/ and $pkg->{maintainer} = [ split /, /, $1 ];
 		/^Require-User:\s*(.*?)\s*$/ and do {
 			my @ugspecs = split /\s+/, $1;
 



More information about the lede-commits mailing list