chiark / gitweb /
nailing-cargo: Bugfixes etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 May 2020 23:33:10 +0000 (00:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 6 May 2020 19:29:34 +0000 (20:29 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo

index 1b6a303cf632cfc2f0e9c18b73398a023f782b94..0d119a29132eb826150134c19894d04c1b0e049e 100755 (executable)
@@ -48,7 +48,7 @@ use File::Compare;
 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;
@@ -205,7 +205,7 @@ sub calculate () {
                next unless $info;
                $info = { } unless ref $info;
                delete $info->{version};
-               $info->{path} = $packagemap{$p};
+               $info->{path} = $worksphere.'/'.$packagemap{$p};
            }
        }
        my $nailing = "$mf.nailing~";