diff options
author | J Pipkin <j@dawnrazor.net> | 2013-01-12 04:58:23 -0600 |
---|---|---|
committer | J Pipkin <j@dawnrazor.net> | 2013-01-12 04:58:23 -0600 |
commit | e95685f4330b20cc660c69b803c3ce90f33bc430 (patch) | |
tree | 2b948c66bea34b9951362ae5f61463d6cc0ad9fa /sboremove | |
parent | be2bb2b27d61a39bff6efd890c3d519c39db321e (diff) | |
download | sbotools2-e95685f4330b20cc660c69b803c3ce90f33bc430.tar.xz |
resolve items marked TODO
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -61,14 +61,6 @@ for my $sbo (@ARGV) { } exit 1 unless exists $sbos[0]; -# # wrapper to pull the list of requirements for a given sbo -# sub get_requires ($) { -# my $location = get_sbo_location(shift); -# return unless $location; -# my $info = get_from_info(LOCATION => $location, GET => 'REQUIRES'); -# return $$info[0] ne '' ? $info : undef; -# } - # Create full queue. my ($remove_queue, %warnings); for my $sbo (@sbos) { @@ -156,8 +148,14 @@ FIRST: for my $remove (@$remove_queue) { if ( "%README%" ~~ @reqz ) { say "It is recommended that you view the README before continuing."; print "Display README now? [y]: "; - my $readme = get_readme_contents get_sbo_location($remove); - print "\n" . $readme if <STDIN> =~ /^[Yy\n]/; + if (<STDIN> =~ /^[Yy\n]/) { + my ($readme, $exit) = get_readme_contents get_sbo_location($remove); + if ($exit) { + warn "Unable to open README for $remove.\n"; + } else { + print "\n" . $readme; + } + } } # Determine default behavior for prompt |