diff options
author | xocel <xocel@iquidus.org> | 2013-01-13 22:04:11 +1300 |
---|---|---|
committer | xocel <xocel@iquidus.org> | 2013-01-13 22:04:11 +1300 |
commit | f46f97612dc1d9b040b17e06eaffcb7dd5aeba06 (patch) | |
tree | 4400c0f8aac1c5d6900778c52ee1eeedcf779f0e /sboremove | |
parent | 32abf3c7e9183cfe79019c748e588496722f7426 (diff) | |
download | sbotools-f46f97612dc1d9b040b17e06eaffcb7dd5aeba06.tar.xz |
removed req_store. warnings{sbo} equals %README% if readme is required
Diffstat (limited to 'sboremove')
-rwxr-xr-x | sboremove | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -69,10 +69,6 @@ for my $sbo (@sbos) { $remove_queue = merge_queues($remove_queue, $queue); } -# Read requires for each item in queue (needed for later on, %README% etc) -my %req_store; -$req_store{$_} = get_requires $_ for @$remove_queue; - # Determine required by for all installed sbo's my (%required_by, @confirmed); @@ -144,8 +140,7 @@ FIRST: for my $remove (@$remove_queue) { } # Check for %README% value and inform user. - my @reqz = $req_store{$remove}; - if ( "%README%" ~~ @reqz ) { + if ( $warnings{$remove} ) { say "It is recommended that you view the README before continuing."; print "Display README now? [y]: "; if (<STDIN> =~ /^[Yy\n]/) { |