From a62f0d02ec82d8a4c9618076a7893665dc21cf78 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 23 Sep 2014 10:41:15 +0000 Subject: build: allow packages with build variants to explicitly select a default variant Signed-off-by: Felix Fietkau SVN-Revision: 42654 --- scripts/metadata.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/metadata.pm') diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 0e55c8ebed..ab5abc0363 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -115,6 +115,7 @@ sub parse_package_metadata($) { /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; /^Hidden: \s*(.+)\s*$/ and $pkg->{hidden} = 1; /^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1; + /^Default-Variant: .*/ and $pkg->{variant_default} = 1; /^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1; /^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ]; /^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ]; -- cgit v1.2.3