summaryrefslogtreecommitdiff
path: root/test/integration/test-provides-gone-with-upgrade
blob: 3b4bc2d045d71c6395679832815b2fcf51e919b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -e

TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
setupenvironment
configarchitecture "i386"

insertinstalledpackage 'apt' 'i386' '0.8.14' 'Provides: libapt-pkg4.10'
insertpackage 'unstable' 'apt' 'i386' '0.8.15' 'Depends: libapt-pkg4.10'
insertpackage 'unstable' 'libapt-pkg4.10' 'i386' '0.8.15' 'Breaks: apt (<< 0.8.15)
Replaces: apt (<< 0.8.15)'

setupaptarchive

testequal 'Reading package lists...
Building dependency tree...
Calculating upgrade...
The following NEW packages will be installed:
  libapt-pkg4.10
The following packages will be upgraded:
  apt
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst apt [0.8.14] (0.8.15 unstable [i386]) []
Inst libapt-pkg4.10 (0.8.15 unstable [i386])
Conf libapt-pkg4.10 (0.8.15 unstable [i386])
Conf apt (0.8.15 unstable [i386])' aptget dist-upgrade -s