aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-01-04 19:52:18 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-01-13 19:54:43 +0100
commit19577582e437dcff50c97c5c19726b12f7b3a5ac (patch)
tree1702de1680de4d4da9501d9f76c075a80821af19 /scripts/metadata.pm
parent1a2b5eb7ac6bce10fe9afa941db6ee5001ce80e3 (diff)
downloadupstream-19577582e437dcff50c97c5c19726b12f7b3a5ac.tar.gz
upstream-19577582e437dcff50c97c5c19726b12f7b3a5ac.tar.bz2
upstream-19577582e437dcff50c97c5c19726b12f7b3a5ac.zip
metadata: make srcpackage extensible
Turn the srcpackage values into hashes to allow storing more information than just binary package names. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index d446892e2b..fdb1fbb433 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -212,7 +212,9 @@ sub parse_package_metadata($) {
$src = $3;
$subdir =~ s/^package\///;
$subdir{$src} = $subdir;
- $srcpackage{$src} = [];
+ $srcpackage{$src} = {
+ packages => [],
+ };
$override = "";
undef $pkg;
};
@@ -237,7 +239,7 @@ sub parse_package_metadata($) {
$pkg->{tristate} = 1;
$pkg->{override} = $override;
$package{$1} = $pkg;
- push @{$srcpackage{$src}}, $pkg;
+ push @{$srcpackage{$src}{packages}}, $pkg;
};
/^Feature:\s*(.+?)\s*$/ and do {
undef $pkg;