]> git.saurik.com Git - apt.git/blame - test/integration/test-provides-gone-with-upgrade
releasing version 0.8.16~exp7
[apt.git] / test / integration / test-provides-gone-with-upgrade
CommitLineData
4e9ccfb2
CB
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386"
8
9insertinstalledpackage 'apt' 'i386' '0.8.14' 'Provides: libapt-pkg4.10'
10insertpackage 'unstable' 'apt' 'i386' '0.8.15' 'Depends: libapt-pkg4.10'
11insertpackage 'unstable' 'libapt-pkg4.10' 'i386' '0.8.15' 'Breaks: apt (<< 0.8.15)
12Replaces: apt (<< 0.8.15)'
13
14setupaptarchive
15
16#testequal 'Reading package lists...
17#Building dependency tree...
18#The following NEW packages will be installed:
19# libapt-pkg4.10
20#The following packages will be upgraded:
21# apt
22#1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
23#Inst libapt-pkg4.10 (0.8.15 unstable [i386]) [libapt-pkg4.10:i386 on apt:i386] []
24#Conf libapt-pkg4.10:i386 broken
25# Breaks:apt:i386
26# []
27#Inst apt [0.8.14] (0.8.15 unstable [i386])
28#Conf apt (0.8.15 unstable [i386])
29#E: Conf Broken libapt-pkg4.10:i386'
30aptget dist-upgrade -s -o Debug::pkgPackageManager=1
31# the solution by dpkg will be to deconfigure apt with the configuration of libapt-pkg4.10
32
33exit 0
34
35#FIXME: a good result would be this instead, but it requires that APT can delay his immediate configuration…
36testequal 'Reading package lists...
37Building dependency tree...
38The following NEW packages will be installed:
39 libapt-pkg4.10
40The following packages will be upgraded:
41 apt
421 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
43Inst libapt-pkg4.10 (0.8.15 unstable [i386])
44Conf libapt-pkg4.10 (0.8.15 unstable [i386])
45Inst apt [0.8.14] (0.8.15 unstable [i386])
46Conf apt (0.8.15 unstable [i386])' aptget dist-upgrade -s