diff --git a/Gemfile.lock b/Gemfile.lock index a8d79e60..9bfe28ec 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -63,7 +63,6 @@ GEM net-http ffi (1.17.0-aarch64-linux-gnu) ffi (1.17.0-arm64-darwin) - ffi (1.17.0-x86_64-darwin) ffi (1.17.0-x86_64-linux-gnu) hashie (5.0.0) htmlentities (4.3.4) @@ -193,8 +192,6 @@ GEM PLATFORMS aarch64-linux arm64-darwin-22 - x86_64-darwin-21 - x86_64-darwin-23 x86_64-linux DEPENDENCIES diff --git a/lib/ontologies_linked_data/models/ontology_submission.rb b/lib/ontologies_linked_data/models/ontology_submission.rb index 31a341a4..53b4b0a6 100644 --- a/lib/ontologies_linked_data/models/ontology_submission.rb +++ b/lib/ontologies_linked_data/models/ontology_submission.rb @@ -135,14 +135,15 @@ def self.copy_file_repository(acronym, submissionId, src, filename = nil) path_to_repo = File.join([LinkedData.settings.repository_folder, acronym.to_s, submissionId.to_s]) name = filename || File.basename(File.new(src).path) # THIS LOGGER IS JUST FOR DEBUG - remove after NCBO-795 is closed - logger = Logger.new(Dir.pwd + "/create_permissions.log") + # https://github.com/ncbo/bioportal-project/issues/323 + # logger = Logger.new(Dir.pwd + "/logs/create_permissions.log") if not Dir.exist? path_to_repo FileUtils.mkdir_p path_to_repo - logger.debug("Dir created #{path_to_repo} | #{"%o" % File.stat(path_to_repo).mode} | umask: #{File.umask}") # NCBO-795 + # logger.debug("Dir created #{path_to_repo} | #{"%o" % File.stat(path_to_repo).mode} | umask: #{File.umask}") # NCBO-795 end dst = File.join([path_to_repo, name]) FileUtils.copy(src, dst) - logger.debug("File created #{dst} | #{"%o" % File.stat(dst).mode} | umask: #{File.umask}") # NCBO-795 + # logger.debug("File created #{dst} | #{"%o" % File.stat(dst).mode} | umask: #{File.umask}") # NCBO-795 if not File.exist? dst raise Exception, "Unable to copy #{src} to #{dst}" end