2010-11-22 04:51:35 +02:00
|
|
|
#!/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
|
2010-11-22 11:52:53 +02:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
qpkg_fail "prerequisite conflicts with installed package" prereq A <<EOF
|
|
|
|
Package: B
|
|
|
|
Version: 0
|
|
|
|
Architecture: test
|
|
|
|
Conflicts: C
|
|
|
|
Filename: B
|
|
|
|
|
|
|
|
Package: A
|
|
|
|
Version: 0
|
|
|
|
Architecture: test
|
|
|
|
Depends: B
|
|
|
|
Filename: A
|
|
|
|
|
|
|
|
Package: C
|
|
|
|
Version: 0
|
|
|
|
Architecture: test
|
|
|
|
Status: installed
|
|
|
|
EOF
|
|
|
|
expect <<EOF
|
|
|
|
can't resolve A
|
|
|
|
EOF
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
qpkg_fail "initial package conflicts with installed package" prereq A <<EOF
|
|
|
|
Package: A
|
|
|
|
Version: 0
|
|
|
|
Architecture: test
|
|
|
|
Conflicts: C
|
|
|
|
Filename: A
|
|
|
|
|
|
|
|
Package: C
|
|
|
|
Version: 0
|
|
|
|
Architecture: test
|
|
|
|
Status: installed
|
|
|
|
EOF
|
|
|
|
expect <<EOF
|
|
|
|
A conflicts with installed packages
|