Skip to content

Commit 91799d5

Browse files
committed
metadata.pl: fix target profile sorting check
Signed-off-by: Felix Fietkau <[email protected]>
1 parent 15f8819 commit 91799d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/metadata.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ sub parse_target_metadata($) {
8989
};
9090
push @{$target->{profiles}}, $profile;
9191
};
92-
/^Target-Profile-Name:\s*(.+)\s*$/ and do {
92+
/^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
93+
/^Target-Profile-Priority:\s*(\d+)\s*$/ and do {
94+
$profile->{priority} = $1;
9395
$target->{sort} = 1;
94-
$profile->{name} = $1;
9596
};
96-
/^Target-Profile-Priority:\s*(\d+)\s*$/ and $profile->{priority} = $1;
9797
/^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages} = [ split(/\s+/, $1) ];
9898
/^Target-Profile-Description:\s*(.*)\s*/ and $profile->{desc} = get_multiline(*FILE);
9999
/^Target-Profile-Config:/ and $profile->{config} = get_multiline(*FILE, "\t");

0 commit comments

Comments
 (0)