Fix unintented depenedency issue 72/140472/1 accepted/tizen/4.0/unified/20170816.010745 accepted/tizen/4.0/unified/20170816.015749 accepted/tizen/4.0/unified/20170829.020203 accepted/tizen/unified/20170725.174318 submit/tizen/20170725.062138 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100004 submit/tizen_4.0_unified/20170814.115522
authorKunhoon Baik <knhoon.baik@samsung.com>
Tue, 25 Jul 2017 06:08:58 +0000 (15:08 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Tue, 25 Jul 2017 06:13:39 +0000 (15:13 +0900)
Only one user-agent per target should be installed.
If per target agent has dependency on the main package,
conflict packages should be declared to avoid multiple target agent installation.

Thus, this patch defines the conflict packages for each user-agent per target.

Eventually, per-target agent will be removed.There are per-ux specifc agent will be created.
For example, circle-ux-agent, box-ux-agent, no-ux-agent.

Change-Id: I2b20879adb7e67997e3805b6193a2301c561b17d

packaging/tota-ua.spec

index ce701d274f381e94766521242ba30f217b04fa3d..acaa678c23b2ec45887323a2a0f72124a12dfd8d 100755 (executable)
@@ -25,12 +25,14 @@ Fota update agent which update firmware using delta files
 %package target_rpi3
 Summary:       TOTA update agent for RPi3 target
 Provides:      %{name}-compat = %{version}-%{release}
+Conflicts:      %{name}-target_tw1
 %description target_rpi3
 TOTA update agent binary targeting RPi3 target.
 
 %package target_tw1
 Summary:       TOTA update agent for TW1 target
 Provides:      %{name}-compat = %{version}-%{release}
+Conflicts:      %{name}-target_rpi3
 %description target_tw1
 TOTA update agent binary targeting TW1 target.