Skip to content

Commit 9a04a80

Browse files
committed
scripts: metadata: use the new "Repository" field
Switch to the new "Repository" metadata field to populate tmp/.packagesubdirs Signed-off-by: Jo-Philipp Wich <[email protected]>
1 parent aad2b92 commit 9a04a80

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/metadata.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ ()
849849
parse_package_metadata($ARGV[0]) or exit 1;
850850
foreach my $name (sort {uc($a) cmp uc($b)} keys %package) {
851851
my $pkg = $package{$name};
852-
if ($pkg->{name} && $pkg->{package_subdir}) {
853-
print "Package/$name/subdir = $pkg->{package_subdir}\n";
852+
if ($pkg->{name} && $pkg->{repository}) {
853+
print "Package/$name/subdir = $pkg->{repository}\n";
854854
}
855855
}
856856
}

scripts/metadata.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ sub parse_package_metadata($) {
223223
/^Build-Depends\/(\w+): \s*(.+)\s*$/ and $pkg->{"builddepends/$1"} = [ split /\s+/, $2 ];
224224
/^Build-Types:\s*(.+)\s*$/ and $pkg->{buildtypes} = [ split /\s+/, $1 ];
225225
/^Package-Subdir:\s*(.+?)\s*$/ and $pkg->{package_subdir} = $1;
226+
/^Repository:\s*(.+?)\s*$/ and $pkg->{repository} = $1;
226227
/^Category: \s*(.+)\s*$/ and do {
227228
$pkg->{category} = $1;
228229
defined $category{$1} or $category{$1} = {};

0 commit comments

Comments
 (0)