summaryrefslogtreecommitdiff
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-11 19:17:42 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-11 19:18:16 +0200
commit91799d5198da67d03d3df4da4f384ace9f6e5bcc (patch)
tree66d65f4cfabe327e60e2282417a8785c646f4583 /scripts/metadata.pm
parent15f88192bf7bf51ec325492315cfa16358ed3d72 (diff)
downloadmtk-20170518-91799d5198da67d03d3df4da4f384ace9f6e5bcc.zip
mtk-20170518-91799d5198da67d03d3df4da4f384ace9f6e5bcc.tar.gz
mtk-20170518-91799d5198da67d03d3df4da4f384ace9f6e5bcc.tar.bz2
metadata.pl: fix target profile sorting check
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index 3b75621..5f28289 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -89,11 +89,11 @@ sub parse_target_metadata($) {
};
push @{$target->{profiles}}, $profile;
};
- /^Target-Profile-Name:\s*(.+)\s*$/ and do {
+ /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
+ /^Target-Profile-Priority:\s*(\d+)\s*$/ and do {
+ $profile->{priority} = $1;
$target->{sort} = 1;
- $profile->{name} = $1;
};
- /^Target-Profile-Priority:\s*(\d+)\s*$/ and $profile->{priority} = $1;
/^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages} = [ split(/\s+/, $1) ];
/^Target-Profile-Description:\s*(.*)\s*/ and $profile->{desc} = get_multiline(*FILE);
/^Target-Profile-Config:/ and $profile->{config} = get_multiline(*FILE, "\t");