]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-cli-upgrade
54f2ecd119ee4661f8dd367f15054e5c8b34c4f9
4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 if [ ! -x ${BUILDDIRECTORY}/apt
]; then
11 msgmsg
"No ${BUILDDIRECTORY}/apt"
17 insertpackage
'unstable' 'foo' 'all' '2.0' 'Depends: foo-new-dependency'
18 insertpackage
'unstable' 'foo-new-dependency' 'all' '2.0'
19 insertinstalledpackage
'foo' 'all' '1.0'
23 APTARCHIVE
=$(readlink -f ./aptarchive)
25 # default is to allow new dependencies
26 testsuccessequal
"The following NEW packages will be installed:
28 The following packages will be upgraded:
30 1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
31 Inst foo-new-dependency (2.0 unstable [all])
32 Inst foo [1.0] (2.0 unstable [all])
33 Conf foo-new-dependency (2.0 unstable [all])
34 Conf foo (2.0 unstable [all])" apt upgrade
-qq -s
36 # ensure the 'old' way works as well
37 testsuccessequal
"The following packages have been kept back:
39 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." apt upgrade
-qq -s --no-new-pkgs