aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-10-31 21:51:53 -0400
committerRalph Amissah <ralph@amissah.com>2011-10-31 21:51:53 -0400
commit87608df71506374ba6636353ebb16c6a2160f8bc (patch)
treea3b95147336e9ea755b52d9ff3da98f0ad1e4b79 /lib/sisu/v3/sysenv.rb
parentv3: conf/convert/modify.rb minor fixes (diff)
v3: sysenv, skins, a fix
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r--lib/sisu/v3/sysenv.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb
index b1560c66..cb7b94df 100644
--- a/lib/sisu/v3/sysenv.rb
+++ b/lib/sisu/v3/sysenv.rb
@@ -4985,15 +4985,17 @@ WOK
and ((! @md.nil?) \
&& (defined? @md.opt) \
&& (defined? @md.opt.mod) \
- && @md.opt.mod.inspect =~/--trust/)
- true #security only run skins on sisupod if --trust flag is provided
- else false
+ && @md.opt.mod.inspect !~/--trust/)
+ true # security only run skins on sisupod if --trust flag is provided
+ elsif @pwd_stub =~/^(?:doc|sisupod)$/ # consider/reconsider doc
+ false
+ else true
end
doc_skin,dir_skin=nil,nil
if skin
unless @d_sk.nil?
sk_doc="doc/#{@d_sk}.rb"
- skin_path.each do |v| #document skin priority 1
+ skin_path.each do |v| # document skin priority 1
if FileTest.file?("#{v}/#{sk_doc}")
doc_skin="#{v}/#{sk_doc}"
load doc_skin
@@ -5003,7 +5005,7 @@ WOK
end
unless doc_skin
sk_dir="dir/skin_#{@pwd_stub}.rb"
- skin_path.each do |v| #directory skin priority 2
+ skin_path.each do |v| # directory skin priority 2
if FileTest.file?("#{v}/#{sk_dir}")
dir_skin="#{v}/#{sk_dir}"
load dir_skin