X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/bc624321e8fb058c5ebce476d33d6d0e4dcfa9e3..472d19b31d371eb4d6081332e2324f858a195e8b:/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 ];