aboutsummaryrefslogtreecommitdiffstats
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
commitccb604a5735f561a8c933c756ef92857412bb8c5 (patch)
tree93a20eaab08ed31c58cbe82c8bf37112481ab0a4
parent03d44e8fe23011d17417a324d868306a669f1af8 (diff)
downloadupstream-ccb604a5735f561a8c933c756ef92857412bb8c5.tar.gz
upstream-ccb604a5735f561a8c933c756ef92857412bb8c5.tar.bz2
upstream-ccb604a5735f561a8c933c756ef92857412bb8c5.zip
metadata: allow build variants to contain "-"
SVN-Revision: 19284
-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 ];