]> git.saurik.com Git - apt.git/blob - test/integration/skip-bug-711456-apt-cdrom-multiple-cds-multiarch
hide Translation-* in 'apt-cache policy' output
[apt.git] / test / integration / skip-bug-711456-apt-cdrom-multiple-cds-multiarch
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64' 'i386'
8
9 buildsimplenativepackage 'testing' 'amd64,i386' '0.8.15' 'stable' 'Depends: libtest'
10 buildsimplenativepackage 'libtest' 'amd64,i386' '0.8.15' 'stable' 'Multi-Arch: same'
11 buildsimplenativepackage 'libtest' 'amd64,i386' '1' 'unstable' 'Multi-Arch: same'
12
13 # needed by the ftparchive.conf
14 cd aptarchive
15 ln -s ../incoming pool
16 createaptftparchiveconfig
17 cd - >/dev/null
18 # create an amd64 cdrom
19 sed -i 's#Architectures .*$#Architectures "amd64 source";#' aptarchive/ftparchive.conf
20 setupaptarchive --no-update
21 changetocdrom 'Debian APT Testdisk amd64 0.8.15'
22 mv rootdir/media/cdrom rootdir/media/cdrom-amd64
23 addtrap 'prefix' "chmod -R +w $PWD/rootdir/media/cdrom-amd64/dists/;"
24 chmod -R -w rootdir/media/cdrom-amd64/dists
25 ln -s $PWD/rootdir/media/cdrom-amd64 $PWD/rootdir/media/cdrom
26 aptcdrom add -m -o quiet=1
27 rm $PWD/rootdir/media/cdrom
28 # do it again to create a i386 cdrom
29 sed -i 's#Architectures .*$#Architectures "i386 source";#' aptarchive/ftparchive.conf
30 setupaptarchive --no-update
31 changetocdrom 'Debian APT Testdisk i386 0.8.15'
32 mv rootdir/media/cdrom rootdir/media/cdrom-i386
33 addtrap 'prefix' "chmod -R +w $PWD/rootdir/media/cdrom-i386/dists/;"
34 chmod -R -w rootdir/media/cdrom-i386/dists
35 ln -s $PWD/rootdir/media/cdrom-i386 $PWD/rootdir/media/cdrom
36 aptcdrom add -m -o quiet=1
37
38 # play with the cdroms
39 testdpkgnotinstalled testing
40 aptget install testing -t stable -y #> /dev/null 2>&1
41 testdpkginstalled testing
42
43 testdpkgnotinstalled testing:i386
44 aptget install testing:i386 -t stable -y #> /dev/null 2>&1
45 testdpkginstalled testing:i386
46
47 aptget dist-upgrade -y