mirror of
https://github.com/immortalwrt/immortalwrt.git
synced 2025-08-14 14:19:53 +08:00
ib: display whether profile comes with image metadata
Having image metadata (and signature) appended is a condition for semi-automated sysupgrade, hence IB needs to be able to tell which images will end up with metadata. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@ -139,6 +139,7 @@ sub parse_target_metadata($) {
|
||||
$profile = {
|
||||
id => $1,
|
||||
name => $1,
|
||||
has_image_metadata => 0,
|
||||
priority => 999,
|
||||
packages => []
|
||||
};
|
||||
@ -146,6 +147,7 @@ sub parse_target_metadata($) {
|
||||
push @{$target->{profiles}}, $profile;
|
||||
};
|
||||
/^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
|
||||
/^Target-Profile-hasImageMetadata:\s*(\d+)\s*$/ and $profile->{has_image_metadata} = $1;
|
||||
/^Target-Profile-Priority:\s*(\d+)\s*$/ and do {
|
||||
$profile->{priority} = $1;
|
||||
$target->{sort} = 1;
|
||||
|
Reference in New Issue
Block a user