From 215fa8b558e23f19238de6ece2daff6711294da2 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Thu, 7 Sep 2023 12:33:10 +0300 Subject: [PATCH] install: Add conflict if Dangerzone is installed Add a "Conflicts:" entry in the RPM spec, in case another version of Dangerzone is already installed. --- install/linux/dangerzone.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install/linux/dangerzone.spec b/install/linux/dangerzone.spec index 8f9429a..2c436b9 100644 --- a/install/linux/dangerzone.spec +++ b/install/linux/dangerzone.spec @@ -50,6 +50,19 @@ URL: https://dangerzone.rocks # https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_troublesome_urls Source0: https://github.com/freedomofpress/dangerzone/archive/refs/tags/v%{version}.tar.gz#/dangerzone-%{version}.tar.gz +################################################################################ +# Package Replacements + +%if 0%{?_qubes} +# Users who install Dangerzone with native Qubes support must uninstall +# Dangerzone with container support. +Conflicts: dangerzone +%else +# Users who install Dangerzone with container support must uninstall Dangerzone +# with native Qubes support. +Conflicts: dangerzone-qubes +%endif + ################################################################################ # Package Requirements