From 782cb41626ff88f697369ea543e697f136d45fe9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 Jun 2020 19:29:52 +0100 Subject: [PATCH] nailing-cargo: Fix handling of missing oot.use Signed-off-by: Ian Jackson --- nailing-cargo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nailing-cargo b/nailing-cargo index e737d78..72abb09 100755 --- a/nailing-cargo +++ b/nailing-cargo @@ -283,7 +283,7 @@ sub consider_oot () { $cargo_lock_update=0; return; } - if ($use eq 'disable') { + if (($use//'') eq 'disable') { $oot_dir = undef; return; } @@ -406,6 +406,7 @@ sub oot_massage_cmdline () { return unless defined $oot_dir; my $use = cfgs qw(oot use); + $use // die "$self: out-of-tree build, but \`oot.use' not configured\n"; $oot_absdir = ($oot_dir !~ m{^/} ? "$worksphere/" : ""). $oot_dir; $build_absdir = "$oot_absdir/$subdir"; -- 2.30.2