projects
/
openwrt
/
staging
/
stintel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03d44e8
)
metadata: allow build variants to contain "-"
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 23 Jan 2010 08:28:15 +0000
(08:28 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 23 Jan 2010 08:28:15 +0000
(08:28 +0000)
SVN-Revision: 19284
scripts/metadata.pm
patch
|
blob
|
history
diff --git
a/scripts/metadata.pm
b/scripts/metadata.pm
index b7a448b617248efa47bccabf62ce353d5575e65d..52ca9895e4d81661145be32487519b147dce3a1a 100644
(file)
--- 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 ];