lib/rbbt/util/pkg_software.rb in rbbt-util-1.0.1 vs lib/rbbt/util/pkg_software.rb in rbbt-util-1.1.0

- old
+ new

@@ -68,21 +68,21 @@ path = File.join(opt_dir, subpath.to_s, pkg.to_s) if not File.exists?(path) sharedir ||= PKGSoftware.get_caller_sharedir get_pkg(pkg.to_s, path, get, sharedir) + setup_env(software_dir) end SOFTWARE[pkg.to_s] = path end end def find_software(pkg) SOFTWARE[pkg.to_s] end - def setup_env(software_dir) Misc.env_add 'PATH', bin_dir FileUtils.mkdir_p opt_dir unless File.exists? opt_dir %w(.ld-paths .pkgconfig-paths .aclocal-paths .java-classpaths).each do |file| @@ -125,6 +125,7 @@ File.chmod 0774, File.join(opt_dir, '.post_install') CMD.cmd(File.join(opt_dir, '.post_install')) end + end