File: best.t

package info (click to toggle)
libsolv 0.7.35-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,804 kB
  • sloc: ansic: 73,004; python: 871; perl: 742; tcl: 730; ruby: 705; sh: 263; cpp: 204; makefile: 41
file content (27 lines) | stat: -rw-r--r-- 597 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# test that locked packages trump best rules

repo system 0 testtags <inline>
#>=Pkg: b 1 1 i686
repo available 0 testtags <inline>
#>=Pkg: a 2 1 i686
#>=Pkg: a 3 1 i686
#>=Pkg: b 2 1 i686
#>=Pkg: b 3 1 i686

system i686 * system

job install name a [forcebest]
job lock name a = 3-1
result transaction,problems <inline>
#>install a-2-1.i686@available

nextjob
job update name b [forcebest]
job lock name b = 3-1
result transaction,problems <inline>
#>upgrade b-1-1.i686@system b-2-1.i686@available

nextjob
job update name b [forcebest]
job lock name b = 1-1
result transaction,problems <inline>