From d9ff9200b16cec4797b7a94631b685a35b39a0d3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Stop if there are missing deps. --- nsiswrapper/nsiswrapper.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nsiswrapper/nsiswrapper.pl b/nsiswrapper/nsiswrapper.pl index f0eafb8..04bced3 100755 --- a/nsiswrapper/nsiswrapper.pl +++ b/nsiswrapper/nsiswrapper.pl @@ -285,6 +285,8 @@ sub print_config # Starting at the roots, get the dependencies. +my $missing_deps = 0; + sub do_dependencies { my $gotem = 1; @@ -308,6 +310,9 @@ sub do_dependencies } } } + + die "please correct missing dependencies shown above\n" + if $missing_deps > 0; } my $path_warning = 0; @@ -344,6 +349,7 @@ sub get_deps_for_file push @deps, $found; } else { warn "MISSING DEPENDENCY: $_ (for $file)\n"; + $missing_deps++; unless ($path_warning) { warn "You may need to add the directory containing this file to your \$PATH\n"; $path_warning = 1; -- 1.8.3.1