Skip to content

Commit

Permalink
Fix typo in dep2src hash generation
Browse files Browse the repository at this point in the history
Weird that this did not show up earlier.
  • Loading branch information
mlschroe committed Oct 10, 2024
1 parent 8f88e3b commit 0c3f6a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions PBuild/Checker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ sub prepare {
my ($ctx, $repos, $hostrepos) = @_;
my $dep2pkg = PBuild::Expand::configure_repos($ctx->{'bconf'}, $repos);
my %dep2src;
my %subpacks;
for my $n (sort keys %$dep2pkg) {
my $bin = $dep2pkg->{$n};
my $sn = $bin->{'source'};
$sn = $n unless defined $n;
$dep2src{$n} = $sn;
my $sn = $dep2pkg->{$n}->{'source'};
$dep2src{$n} = defined($sn) ? $sn : $n;
}
my %subpacks;
push @{$subpacks{$dep2src{$_}}}, $_ for keys %dep2src;
$ctx->{'dep2src'} = \%dep2src;
$ctx->{'dep2pkg'} = $dep2pkg;
Expand Down

0 comments on commit 0c3f6a2

Please sign in to comment.