Imported Upstream version 0.6.16
[platform/upstream/libsolv.git] / test / testcases / distupgrade / dup_orphan2.t
1 # test dup with orphaned packages
2 #
3 # part 2: update conflicts with the orphan
4 #
5 # dup should leave orphaned a installed
6 # for "distupgrade repo available", a is not involved
7 # in the dup and thus not considered orphan.
8 #
9
10 repo system 0 testtags <inline>
11 #>=Pkg: a 1 1 i686
12 #>=Pkg: b 1 1 i686
13 repo available 0 testtags <inline>
14 #>=Pkg: b 2 1 i686
15 #>=Con: a
16 system i686 * system
17
18 job distupgrade all packages
19 result transaction,problems <inline>
20 #>erase a-1-1.i686@system
21 #>upgrade b-1-1.i686@system b-2-1.i686@available
22
23 nextjob
24
25 job distupgrade repo available
26 result transaction,problems <inline>
27 #>erase a-1-1.i686@system
28 #>problem 4d4de423 info package b-2-1.i686 conflicts with a provided by a-1-1.i686
29 #>problem 4d4de423 solution 2cf4745c erase a-1-1.i686@system
30 #>problem 4d4de423 solution 5a433aff allow b-1-1.i686@system
31 #>problem 4d4de423 solution ce4305f2 erase b-1-1.i686@system
32 #>upgrade b-1-1.i686@system b-2-1.i686@available
33
34 ### keeporphans
35
36 nextjob
37
38 solverflags keeporphans
39 job distupgrade all packages
40 result transaction,problems <inline>
41 #>problem 4d4de423 info package b-2-1.i686 conflicts with a provided by a-1-1.i686
42 #>problem 4d4de423 solution 2cf4745c erase a-1-1.i686@system
43 #>problem 4d4de423 solution 5a433aff allow b-1-1.i686@system
44 #>problem 4d4de423 solution ce4305f2 erase b-1-1.i686@system
45
46 nextjob
47
48 solverflags keeporphans
49 job distupgrade repo available
50 result transaction,problems <inline>
51 #>erase a-1-1.i686@system
52 #>problem 4d4de423 info package b-2-1.i686 conflicts with a provided by a-1-1.i686
53 #>problem 4d4de423 solution 2cf4745c erase a-1-1.i686@system
54 #>problem 4d4de423 solution 5a433aff allow b-1-1.i686@system
55 #>problem 4d4de423 solution ce4305f2 erase b-1-1.i686@system
56 #>upgrade b-1-1.i686@system b-2-1.i686@available
57
58
59 ### same with allowuninstall
60
61 nextjob
62
63 solverflags allowuninstall
64 job distupgrade all packages
65 result transaction,problems <inline>
66 #>erase a-1-1.i686@system
67 #>upgrade b-1-1.i686@system b-2-1.i686@available
68
69
70 nextjob
71
72 solverflags allowuninstall
73 job distupgrade repo available
74 result transaction,problems <inline>
75 #>erase b-1-1.i686@system
76
77
78 ### same with allowuninstall and keeporphans
79
80 nextjob
81
82 solverflags allowuninstall keeporphans
83 job distupgrade all packages
84 result transaction,problems <inline>
85 #>erase a-1-1.i686@system
86 #>upgrade b-1-1.i686@system b-2-1.i686@available
87
88
89 nextjob
90
91 solverflags allowuninstall keeporphans
92 job distupgrade repo available
93 result transaction,problems <inline>
94 #>erase a-1-1.i686@system
95 #>upgrade b-1-1.i686@system b-2-1.i686@available
96
97
98