]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-719263-print-uris-removes-authentication
Merge remote-tracking branch 'mvo/feature/install-progress' into debian/sid
[apt.git] / test / integration / test-bug-719263-print-uris-removes-authentication
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6
7 setupenvironment
8 configarchitecture 'amd64'
9
10 insertinstalledpackage 'unrelated' 'all' '1'
11 buildsimplenativepackage 'unrelated' 'all' '2' 'unstable'
12
13 setupaptarchive
14
15 testnoact() {
16 cp -a rootdir/var/lib/dpkg/status rootdir/var/lib/dpkg/status-backup-noact
17 touch rootdir/var/lib/apt/extended_states
18 testequal 'Reading package lists...
19 Building dependency tree...
20 Reading state information...
21 The following packages will be upgraded:
22 unrelated
23 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
24 Inst unrelated [1] (2 unstable [all])
25 Conf unrelated (2 unstable [all])' aptget install unrelated -s
26 testsuccess aptget install unrelated -y
27 testdpkginstalled unrelated
28 cp -a rootdir/var/lib/dpkg/status-backup-noact rootdir/var/lib/dpkg/status
29 }
30
31 testnoact
32 testsuccess aptget update --print-uris
33 testnoact
34
35 # same thing, just not with InRelease this time
36 rm -rf rootdir/var/lib/apt/lists
37 testsuccess aptget update -o Acquire::TryInRelease=0
38
39 testnoact
40 testsuccess aptget update --print-uris -o Acquire::TryInRelease=0
41 testnoact