diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-07-07 08:02:29 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-07-07 08:02:29 -0400 |
commit | ce3eec09f9beba10403c5f1095526eb8687db15d (patch) | |
tree | c167aeacf65e2a6bb1746c8e0c0db04f343074a7 /lib | |
parent | shared_xml, monospace marker for monospace tag (diff) |
sysenv, version.yml moved to /usr/share/sisu (from /etc/sisu)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v1/sysenv.rb | 4 | ||||
-rw-r--r-- | lib/sisu/v2/sysenv.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/v1/sysenv.rb b/lib/sisu/v1/sysenv.rb index a55b03cc..519c0f9f 100644 --- a/lib/sisu/v1/sysenv.rb +++ b/lib/sisu/v1/sysenv.rb @@ -2648,10 +2648,10 @@ WOK def get_version @version={} @pwd=ENV['PWD'] - yst_etc="#{defaults[:sisu_etc]}/#{SiSU_version_dir}/version.yml" + yst_ver="#{defaults[:sisu_share]}/#{SiSU_version_dir}/v/version.yml" lib_path=@@lib_path ? @@lib_path : `echo $RUBYLIB`.split(':') @@lib_path ||=lib_path - if File.exist?(yst_etc); @version=YAML::load(File::open(yst_etc)) #unless @@noyaml + if File.exist?(yst_ver); @version=YAML::load(File::open(yst_ver)) #unless @@noyaml end @version end diff --git a/lib/sisu/v2/sysenv.rb b/lib/sisu/v2/sysenv.rb index 7d4999f2..6c579a9c 100644 --- a/lib/sisu/v2/sysenv.rb +++ b/lib/sisu/v2/sysenv.rb @@ -2669,10 +2669,10 @@ WOK def get_version @version={} @pwd=ENV['PWD'] - yst_etc="#{defaults[:sisu_etc]}/#{SiSU_version_dir}/version.yml" + yst_ver="#{defaults[:sisu_share]}/#{SiSU_version_dir}/v/version.yml" lib_path=@@lib_path ? @@lib_path : `echo $RUBYLIB`.split(':') @@lib_path ||=lib_path - if File.exist?(yst_etc); @version=YAML::load(File::open(yst_etc)) #unless @@noyaml + if File.exist?(yst_ver); @version=YAML::load(File::open(yst_ver)) #unless @@noyaml end @version end |