debian: Fix OVS upgrade dependencies.
authorJoe Stringer <joe@ovn.org>
Fri, 17 Jun 2016 19:42:30 +0000 (12:42 -0700)
committerJoe Stringer <joe@ovn.org>
Thu, 21 Jul 2016 20:12:45 +0000 (13:12 -0700)
commitb52388e6c49702c4245f2254b11d669d7f7c9a83
tree4260d549cd1784f08834705db3f56a31a613beea
parent9e23ac209520d1ca1ac30746ec1d63bc2c37e471
debian: Fix OVS upgrade dependencies.

Commit 0dcc739e7a28 ("debian: Move ovs-lib to openvswitch-common.")
shifted a file between debian packages, but didn't update the
destination package annotations to indicate that it replaces a file
from earlier versions of the source package.

As a result, if one installs openvswitch-switch-2.5* (or earlier) and
then tries to upgrade to openvswitch-{switch,common}-2.5.90+, the
install of openvswitch-common will fail like the following:

dpkg: error processing archive
/tmp/openvswitch-common_2.5.90-1_amd64.deb (--install):
trying to overwrite '/usr/share/openvswitch/scripts/ovs-lib', which is
also in package openvswitch-switch 2.5.0-1

Fix the issue by adding "Replaces" and "Breaks" tags to the new
openvswitch-common section of debian/control.

Fixes: 0dcc739e7a28 ("debian: Move ovs-lib to openvswitch-common.")
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
debian/control