ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's
314 stars 47 forks source link

Add Breaks/Conflicts/Replaces to debian control #79

Closed foosel closed 1 year ago

foosel commented 1 year ago

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.

I've manually adjusted camera-streamer-raspi and created a version 0.2.1~bullseye-1 to test this on a private apt repo and in all my test scenarios upgrades work with these changes: