From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Thu, 9 Oct 2008 11:00:13 +0000 (+0100) Subject: Stop if there are missing deps. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=d9ff9200b16cec4797b7a94631b685a35b39a0d3;p=fedora-mingw.git Stop if there are missing deps. --- 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;