noosfero | Fixes relations namespaces in Orders and Suppliers plugin (!1110)

Bráulio Bhavamitra gitlab at mg.gitlab.com
Fri Feb 10 11:23:05 BRST 2017


New comment for Merge Request !1110 on plugins/orders/install.rb:

https://gitlab.com/noosfero/noosfero/merge_requests/1110#note_23162492

> +  answer = gets.strip.downcase
> +  exit(1) unless answer == 'yes' || answer == 'y'
> +
> +  puts '>>> Adding Noosfero jessie-test to your sources...'
> +  FileUtils.cp(sources_file, '/etc/apt/sources.list.d/')
> +  needs_update = true
> +end
> +
> +unless system 'dpkg -s ruby-axlsx'
> +  puts '>>> Installing ruby-axlsx...'
> +  system 'sudo apt-get update' if needs_update
> +  unless system 'sudo apt-get install -y ruby-axlsx'
> +    exit $?.exitstatus
> +  end
> +end
> +

never saw this being done before, doesn't make sense to handle package and reporsitory installing on a plugin level


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170210/f5975bf4/attachment.html>


More information about the Noosfero-dev mailing list