X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=scripts%2Fmetadata.pm;h=5f282890377112acbbe69174789993313353cf18;hb=91799d5198da67d03d3df4da4f384ace9f6e5bcc;hp=8e285e53a8f2cb4de4fb420f704f7b52f6d3916b;hpb=0333da8943275324d366d562b70f90febbe97e7d;p=librecmc%2Flibrecmc.git diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 8e285e53a8..5f28289037 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -68,7 +68,6 @@ sub parse_target_metadata($) { } }; /^Target-Name:\s*(.+)\s*$/ and $target->{name} = $1; - /^Target-Path:\s*(.+)\s*$/ and $target->{path} = $1; /^Target-Arch:\s*(.+)\s*$/ and $target->{arch} = $1; /^Target-Arch-Packages:\s*(.+)\s*$/ and $target->{arch_packages} = $1; /^Target-Features:\s*(.+)\s*$/ and $target->{features} = [ split(/\s+/, $1) ]; @@ -85,11 +84,16 @@ sub parse_target_metadata($) { $profile = { id => $1, name => $1, + priority => 999, packages => [] }; push @{$target->{profiles}}, $profile; }; /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1; + /^Target-Profile-Priority:\s*(\d+)\s*$/ and do { + $profile->{priority} = $1; + $target->{sort} = 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"); @@ -222,7 +226,7 @@ sub parse_package_metadata($) { /^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ]; /^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ]; /^Build-Types:\s*(.+)\s*$/ and $pkg->{buildtypes} = [ split /\s+/, $1 ]; - /^Package-Subdir:\s*(.+?)\s*$/ and $pkg->{package_subdir} = $1; + /^Repository:\s*(.+?)\s*$/ and $pkg->{repository} = $1; /^Category: \s*(.+)\s*$/ and do { $pkg->{category} = $1; defined $category{$1} or $category{$1} = {};