From: Felix Fietkau Date: Sat, 23 Jan 2010 08:28:15 +0000 (+0000) Subject: metadata: allow build variants to contain "-" X-Git-Tag: reboot~21322 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ccb604a5735f561a8c933c756ef92857412bb8c5;p=oweals%2Fopenwrt.git metadata: allow build variants to contain "-" SVN-Revision: 19284 --- 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 ];