From 34da3b9f3b1590b04e165352c8d88bba31e61281 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 23 Jan 2010 08:28:15 +0000 Subject: metadata: allow build variants to contain "-" git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19284 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/metadata.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/metadata.pm') diff --git a/scripts/metadata.pm b/scripts/metadata.pm index b7a448b61..52ca9895e 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 ]; -- cgit v1.2.3