}
}
+sub cargo_lock_update_after () {
+ return unless $cargo_lock_update;
+ # avoids importing File::Copy and the error handling is about as good
+ $!=0; $?=0;
+ my $r= system qw(cp --), "$build_absdir/Cargo.lock", "Cargo.lock";
+ die "$self: run cp: $! $?" if $r<0 || $r & 0xff;
+ die "$self: failed to update local Cargo.lock (wait status $r)\n" if $r;
+}
+
sub uninstall1 ($$) {
my ($mf, $enoentok) = @_;
my $unnailed = "$mf.unnailed";
consider_oot();
readorigs();
calculate();
-calculate_oot();
+addargs();
+oot_massage_cmdline();
+setenvs();
if ($dump) {
eval '
uninstall();
$want_uninstall = 1;
-get_cargo_lock() if $oot_cargo_lock_faff;
+cargo_lock_update_after();
print STDERR "$self: unnailed. status $estatus.\n" if $verbose;