diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-01-23 08:28:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-01-23 08:28:15 +0000 |
commit | a41a411af7de20a9f92dafaca60ab7b3d836515c (patch) | |
tree | 42de9380a41cc9a019fcd5d337e692797d8ebe7c /scripts | |
parent | 89eedb629e91d88829551c6c57cc4a997bd653fe (diff) | |
download | upstream-a41a411af7de20a9f92dafaca60ab7b3d836515c.tar.gz upstream-a41a411af7de20a9f92dafaca60ab7b3d836515c.tar.bz2 upstream-a41a411af7de20a9f92dafaca60ab7b3d836515c.zip |
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 ]; |