Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
my $self = $0; $self =~ s{^.*/(?=.)}{};
our $worksphere = getcwd() // die "$self: getcwd failed: $!\n";
-$worksphere =~ s{/[^/]+}{} or die "$self: cwd \`$worksphere' unsupported!\n";
+$worksphere =~ s{/[^/]+$}{} or die "$self: cwd \`$worksphere' unsupported!\n";
our $lockfile = "../.nailing-cargo-sphere.lock";
our @configs;
next unless $info;
$info = { } unless ref $info;
delete $info->{version};
- $info->{path} = $packagemap{$p};
+ $info->{path} = $worksphere.'/'.$packagemap{$p};
}
}
my $nailing = "$mf.nailing~";