Skip to content

Commit

Permalink
debian: add Breaks/Conflicts/Replaces to overwrite old version of `ca…
Browse files Browse the repository at this point in the history
…mera-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.
  • Loading branch information
foosel committed Jul 1, 2023
1 parent afff8b9 commit f1966ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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: <raspi>
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Expand Down

0 comments on commit f1966ab

Please # to comment.