From: Ian Jackson Date: Sun, 3 May 2020 23:43:14 +0000 (+0100) Subject: nailing-cargo: Can build a thing X-Git-Tag: nailing-cargo/1.0.0~229 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e0a1a4336a94f0c02fd5dc40962851424075fc52;p=nailing-cargo.git nailing-cargo: Can build a thing Signed-off-by: Ian Jackson --- diff --git a/nailing-cargo b/nailing-cargo index 0d119a2..bca8177 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -198,14 +198,20 @@ sub calculate () { foreach my $mf (keys %manifests) { my $toml = $manifests{$mf}; foreach my $k (qw(dependencies build-dependencies dev-dependencies)) { +print STDERR "CHECKING $mf $k\n"; my $deps = $toml->{$k}; next unless $deps; +use Data::Dumper; +print STDERR "CHECKING $mf $k GOT ".Dumper($deps); foreach my $p (keys %packagemap) { +print STDERR "CHECKING $mf $k -- $p\n"; my $info = $deps->{$p}; - next unless $info; - $info = { } unless ref $info; + next unless defined $info; +print STDERR "CHECKING $mf $k -- $p = $info\n"; + $deps->{$p} = $info = { } unless ref $info; delete $info->{version}; $info->{path} = $worksphere.'/'.$packagemap{$p}; +print STDERR "CHECKING $mf $k -- $p UPDATED ", Dumper($deps); } } my $nailing = "$mf.nailing~";