diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-23 08:28:15 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-01-23 08:28:15 +0000 |
commit | 34da3b9f3b1590b04e165352c8d88bba31e61281 (patch) | |
tree | 42de9380a41cc9a019fcd5d337e692797d8ebe7c /scripts | |
parent | 7022807357223f27577ad44df6800ef73b6ea22c (diff) |
metadata: allow build variants to contain "-"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19284 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/metadata.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index b7a448b617..52ca9895e4 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -112,7 +112,7 @@ sub parse_package_metadata($) { } }; /^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ]; - /^Build-Variant: \s*(\w+)\s*/ and $pkg->{variant} = $1; + /^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $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 ]; |