summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-06-28 17:52:58 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-06-28 17:52:58 -0400
commit2c298473a682c567bbeb5dd7debfd767c5a6edcd (patch)
tree2b83c76007e3e8c86b3553725016146d75da5b86
parent9f44687a14d57fec596b9736584bf8718df75a2e (diff)
downloadgitlab-ce-2c298473a682c567bbeb5dd7debfd767c5a6edcd.tar.gz
Perform unzip quietly in UpdatePagesServicers-silence-update-pages-service
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/225
-rw-r--r--app/services/projects/update_pages_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/projects/update_pages_service.rb b/app/services/projects/update_pages_service.rb
index 17cf71cf098..e60b854f916 100644
--- a/app/services/projects/update_pages_service.rb
+++ b/app/services/projects/update_pages_service.rb
@@ -93,10 +93,11 @@ module Projects
end
# Requires UnZip at least 6.00 Info-ZIP.
+ # -qq be (very) quiet
# -n never overwrite existing files
# We add * to end of SITE_PATH, because we want to extract SITE_PATH and all subdirectories
site_path = File.join(SITE_PATH, '*')
- unless system(*%W(unzip -n #{artifacts} #{site_path} -d #{temp_path}))
+ unless system(*%W(unzip -qq -n #{artifacts} #{site_path} -d #{temp_path}))
raise 'pages failed to extract'
end
end