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)
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

index a7685e5..37aff8d 100644 (file)
@@ -62,6 +62,8 @@ Depends: openssl,
          ${misc:Depends},
          ${shlibs:Depends}
 Suggests: ethtool
+Replaces: openvswitch-switch (<< 2.5.90)
+Breaks: openvswitch-switch (<< 2.5.90)
 Description: Open vSwitch common components
  Open vSwitch is a production quality, multilayer, software-based,
  Ethernet virtual switch. It is designed to enable massive network