mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-22 20:26:48 +02:00
b89bcdfd93
- prereq.c (conflicts, resolve, prereq): renamed "conflicts" to "old_conflicts" - prereq.c (new_conflicts, resolve, prereq): also test whether any of the conflicts of the package we're about to add matches an installed or considered package - test/conflict, test/instconf: test for conflicts introduced by package about to be added
92 lines
1.5 KiB
Bash
Executable File
92 lines
1.5 KiB
Bash
Executable File
#!/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
|
|
|
|
###############################################################################
|
|
|
|
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
|