Skip to content

Commit b196dbe

Browse files
committed
(HI-232) Hiera should replace ruby-hiera
Ubuntu provides the package ruby-hiera. This is difficult, because this causes problems when trying to upgrade from ruby-hiera to hiera. In order to provide a clean upgrade path from distro package, we need to make sure our hiera package will corretly replace the ubuntu package. This commit updates the hiera control file to have a Provides:, Conflicts:, and Replaces: relationship with ruby-hiera. This will let the system know that we only allow either hiera or ruby-hiera to be installed at one time, and, on upgrade to hiera, this will entirely replace ruby-hiera, forcing the removal of that package. For more information, see http://www.debian.org/doc/debian-policy/ch-relationships.html section 7.6.2
1 parent 7752c8a commit b196dbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/debian/control

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ Homepage: http://projects.puppetlabs.com/projects/hiera
99
Package: hiera
1010
Architecture: all
1111
Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, libjson-ruby | ruby-json
12+
Conflicts: ruby-hiera
13+
Provides: ruby-hiera
14+
Replaces: ruby-hiera
1215
Description: A simple pluggable Hierarchical Database.
1316
Hiera is a simple pluggable Hierarchical Database.

0 commit comments

Comments
 (0)