Project

General

Profile

« Previous | Next » 

Revision 5f31bca4

Added by Greg Sutcliffe almost 10 years ago

Update nokogiri gem when installing deface-based plugins

deface < 1.0 has a dependency on ~> 1.5.0 which conflicts
with the 1.6.x gem installed by default in core.

View differences:

plugins/ruby-foreman-dhcp-browser/debian/postinst
# Update gems
cd /usr/share/foreman
# Nokogiri causes us pain due to tight dependencies within deface
# so update it first. We rescue it as trusty will return non-zero if
# nokogiri isn't in the Gemfile.
if [ ! -z "${DEBUG}" ]; then
bundle update nokogiri || true
bundle update foreman_dhcp_browser
else
bundle update nokogiri 2>&1 >> $LOGFILE || true
bundle update foreman_dhcp_browser 2>&1 >> $LOGFILE
fi

Also available in: Unified diff