diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-10-03 03:55:38 -0500 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-10-03 03:55:38 -0500 |
commit | 0af02e57b6fbfd559a48ba0061245e6148d12814 (patch) | |
tree | a7decf3a0d34d6219c8a3251301329a66037f4d4 | |
parent | 1354c09e1b93567ef309ffe0f966cd0de00cf95f (diff) | |
download | sbotools2-0af02e57b6fbfd559a48ba0061245e6148d12814.tar.xz |
when circular reqs are found, advise the user of the situation and ask whether or not proceed, default no
-rwxr-xr-x | sboupgrade | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -133,7 +133,12 @@ sub get_requires ($$) { FIRST: for my $req (@$requires) { my $req_req = get_from_info (LOCATION => get_sbo_location $req, GET => 'REQUIRES'); - return if $sbo ~~ @$req_req; + if ($sbo ~~ @$req_req) { + say "I am seeing circular requirements between $sbo and $req."; + say "Therefore, I am not going to handle requirements for $sbo."; + print 'Do you still wish to proceed? [n] '; + <STDIN> ~ /^[Yy\n]/ ? return : exit 0; + } } return $requires; } |