Parcourir la source

metadata: allow build variants to contain "-"

SVN-Revision: 19284
Felix Fietkau il y a 15 ans
Parent
commit
ccb604a573
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      scripts/metadata.pm

+ 1 - 1
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 ];