From f1966ab2b98a07f993d506839ee455138875e847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 1 Jul 2023 15:39:22 +0200 Subject: [PATCH] debian: add Breaks/Conflicts/Replaces to overwrite old version of `camera-streamer` (#79) As discussed on Discord a while ago, adding Breaks/Conflicts/Replaces entries against camera-streamer (<< 0.2) allows for a smooth migration from the camera-streamer package built for OctoPi to camera-streamer-raspi, through a transitional camera-streamer version 0.2 on OctoPi's side. An upgrade of camera-streamer from OctoPrint's apt repo will pull in an updated transitional camera-streamer package version 0.2 that depends on camera-streamer-raspi. For that to install flawlessly in all cases, it needs to be installed *before* the camera-streamer-raspi dependency (as some files between that and the former camera-streamer package overlap). By declaring Breaks/Conflicts/Replaces relationships on camera-streamer-raspi this is ensured. --- debian/control | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/control b/debian/control index 2f40383..38ac229 100644 --- a/debian/control +++ b/debian/control @@ -23,6 +23,9 @@ Rules-Requires-Root: no Package: camera-streamer-raspi Provides: camera-streamer +Breaks: camera-streamer (<< 0.2) +Conflicts: camera-streamer (<< 0.2) +Replaces: camera-streamer (<< 0.2) Build-Profiles: Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}