#!/bin/sh
. ./Common

###############################################################################

qpkg "resolution order" prereq A <<EOF
Package: A
Version: 0
Architecture: test
Depends: B, C
Filename: A

Package: B
Version: 0
Architecture: test
Depends: D
Filename: B

Package: C
Version: 0
Architecture: test
Depends: E
Filename: C

Package: D
Version: 0
Architecture: test
Filename: D

Package: E
Version: 0
Architecture: test
Filename: E
EOF
expect <<EOF
B
D
C
E
EOF