diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-13 16:31:58 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-13 16:32:36 +0200 |
commit | 0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c (patch) | |
tree | ed2026f974379a235152d530945878e90ad8987c /scripts/metadata.pm | |
parent | 111285e742d075956a149dce5a817fad3de2c850 (diff) | |
download | upstream-0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c.tar.gz upstream-0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c.tar.bz2 upstream-0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c.zip |
scripts/metadata.pl: add support for generating profile make code for the image builder
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r-- | scripts/metadata.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 5f28289037..e2a739533c 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -112,6 +112,11 @@ sub parse_target_metadata($) { packages => [] } ]; + + $target->{sort} and @{$target->{profiles}} = sort { + $a->{priority} <=> $b->{priority} or + $a->{name} cmp $b->{name}; + } @{$target->{profiles}}; } return @target; } |