mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 11:24:59 +02:00
51 lines
808 B
Plaintext
51 lines
808 B
Plaintext
|
#!/bin/sh
|
||
|
. ./Common
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg_fail "installed package conflicts with dependency" prereq A <<EOF
|
||
|
Package: B
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Filename: B
|
||
|
|
||
|
Package: A
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Depends: B
|
||
|
Filename: A
|
||
|
|
||
|
Package: C
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Conflicts: B
|
||
|
Status: installed
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
can't resolve A
|
||
|
EOF
|
||
|
|
||
|
###############################################################################
|
||
|
|
||
|
qpkg_fail "installed package conflicts with initial package" prereq A <<EOF
|
||
|
Package: B
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Filename: B
|
||
|
|
||
|
Package: A
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Depends: B
|
||
|
Filename: A
|
||
|
|
||
|
Package: C
|
||
|
Version: 0
|
||
|
Architecture: test
|
||
|
Conflicts: A
|
||
|
Status: installed
|
||
|
EOF
|
||
|
expect <<EOF
|
||
|
A conflicts with installed packages
|
||
|
EOF
|