Merge branch 'rs-silence-update-pages-service' into 'master'

Perform unzip quietly in UpdatePagesService

Closes gitlab-ee#225

See merge request !12539
This commit is contained in:
Rémy Coutable 2017-06-29 18:02:32 +00:00
commit 02299efa4f

View file

@ -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