aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-23 08:28:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-23 08:28:15 +0000
commita41a411af7de20a9f92dafaca60ab7b3d836515c (patch)
tree42de9380a41cc9a019fcd5d337e692797d8ebe7c /scripts
parent89eedb629e91d88829551c6c57cc4a997bd653fe (diff)
downloadupstream-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.pm2
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 ];