]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-709560-set-candidate-release
require $(HASH)-Download field in .diff/Index files
[apt.git] / test / integration / test-bug-709560-set-candidate-release
CommitLineData
2f5ed336
MV
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
2f5ed336
MV
6setupenvironment
7configarchitecture 'amd64'
8
9insertpackage 'experimental' 'foo' 'all' '2.0' 'Depends: foo-dep (= 2.1)'
10insertpackage 'experimental' 'foo-dep' 'all' '2.1'
11
12
13(
14cat <<EOF
15Package: *
16Pin: release a=experimental
17Pin-Priority: -10
18EOF
19) > rootdir/etc/apt/preferences
20
21
22setupaptarchive
23
25b86db1 24testsuccessequal "Reading package lists...
2f5ed336
MV
25Building dependency tree...
26Selected version '2.0' (experimental [all]) for 'foo'
27Selected version '2.1' (experimental [all]) for 'foo-dep' because of 'foo'
e7ebb414 28The following additional packages will be installed:
2f5ed336
MV
29 foo-dep
30The following NEW packages will be installed:
31 foo foo-dep
320 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
33Inst foo-dep (2.1 experimental [all])
34Inst foo (2.0 experimental [all])
35Conf foo-dep (2.1 experimental [all])
36Conf foo (2.0 experimental [all])" aptget install -q0 -s foo/experimental