On Wed, Oct 2, 2013 at 3:33 PM, Brian Hatfield < "> > wrote:
> No. I strongly object to this.The question is a bit higher level than that surrounding the entire
>
> action :upgrade exists and is sufficient.
>
> If action :install performed upgrades, it would absolutely destroy things,
> for example running MongoDB using the 10gen repos and having a 2.2 database
> upgrade to 2.4 behind your back, etc.
semantics of package, not simply should install also upgrade.
You could have attributes to control it.
# installs but doesn't upgrade
package "mongodb" do
action :install
upgrade false
end
# installs and upgrades
package "mongodb" do
action :install
end
# only upgrade, won't install
package "mongodb" do
action :upgrade
end
Bryan
Archive powered by MHonArc 2.6.16.