]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-753297-upgradable
eipp: add Allow-Temporary-Remove-of-Essentials
[apt.git] / test / integration / test-bug-753297-upgradable
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
6setupenvironment
7configarchitecture 'i386'
8
9cat > rootdir/etc/apt/preferences <<EOF
10Package: *
11Pin: release testing
12Pin-Priority: 600
13
14Package: *
15Pin: release unstable
16Pin-Priority: 1
17EOF
18
19insertpackage 'testing,installed' 'foo' 'all' '1'
20insertpackage 'testing-updates' 'foo' 'all' '2'
21insertpackage 'unstable' 'foo' 'all' '3'
22
23insertinstalledpackage 'bar' 'all' '1'
24insertpackage 'testing' 'bar' 'all' '2'
25
26setupaptarchive
27
28testsuccessequal "Listing...
29bar/testing 2 all [upgradable from: 1]
30N: There is 1 additional version. Please use the '-a' switch to see it" apt list --upgradable
31
32testsuccessequal "Listing...
33bar/testing 2 all [upgradable from: 1]
34foo/testing,now 1 all [installed]" apt list