mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-28 02:05:32 +02:00
97 lines
1.4 KiB
Plaintext
97 lines
1.4 KiB
Plaintext
|
#!/bin/sh
|
||
|
. ./Common
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "prefer later version (1)" prereq foo <<EOF
|
||
|
Package: bar
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Filename: bar_0
|
||
|
|
||
|
Package: bar
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: bar_1
|
||
|
|
||
|
Package: foo
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Depends: bar
|
||
|
Filename: foo
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
bar_1
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "prefer later version (2)" prereq foo <<EOF
|
||
|
Package: bar
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Filename: bar_1
|
||
|
|
||
|
Package: bar
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Filename: bar_0
|
||
|
|
||
|
Package: foo
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Depends: bar
|
||
|
Filename: foo
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
bar_1
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "dependency trumps preference (1)" prereq foo <<EOF
|
||
|
Package: bar
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Filename: bar_0
|
||
|
|
||
|
Package: bar
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Depends: bad
|
||
|
Filename: bar_1
|
||
|
|
||
|
Package: foo
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Depends: bar
|
||
|
Filename: foo
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
bar_0
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg "dependency trumps preference (2)" prereq foo <<EOF
|
||
|
Package: bar
|
||
|
Version: 1
|
||
|
Architecture: test
|
||
|
Depends: bad
|
||
|
Filename: bar_1
|
||
|
|
||
|
Package: bar
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Filename: bar_0
|
||
|
|
||
|
Package: foo
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Depends: bar
|
||
|
Filename: foo
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
bar_0
|
||
|
EOF
|