aboutsummaryrefslogtreecommitdiff
path: root/vendor/supply_drop/lib
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-02-01 15:07:50 +0100
committervarac <varacanero@zeromail.org>2013-02-01 15:07:50 +0100
commitd0247e01c08cf2ce0fefb5808f11c824b681d61f (patch)
tree5a7e6c2fc4446945560fae0d715de57ecc59257b /vendor/supply_drop/lib
parent56f431cc4776cb49b3db1289ecd6c7deda71eb6f (diff)
downloadleap_cli-d0247e01c08cf2ce0fefb5808f11c824b681d61f.tar.gz
leap_cli-d0247e01c08cf2ce0fefb5808f11c824b681d61f.tar.bz2
ignore variable scope warnings for now in leap_cli (Feature #1621)
Diffstat (limited to 'vendor/supply_drop/lib')
-rw-r--r--vendor/supply_drop/lib/supply_drop/writer/colorful_streaming.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/supply_drop/lib/supply_drop/writer/colorful_streaming.rb b/vendor/supply_drop/lib/supply_drop/writer/colorful_streaming.rb
index 6abe90d..e88e552 100644
--- a/vendor/supply_drop/lib/supply_drop/writer/colorful_streaming.rb
+++ b/vendor/supply_drop/lib/supply_drop/writer/colorful_streaming.rb
@@ -20,6 +20,11 @@ module SupplyDrop
@mode = 'notice'
end
+ # make variable scope warnings like notices
+ if data =~ /^warning: Scope*$/
+ @mode = 'notice'
+ end
+
# force the printing of 'finished catalog run' if there have not been any errors
if @mode == 'notice' && !@error_encountered && data =~ /Finished catalog run/
@mode = 'forced_notice'