]>
Commit | Line | Data |
---|---|---|
f107544e DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
f107544e DK |
6 | setupenvironment |
7 | configarchitecture "i386" | |
ce9864a8 | 8 | setupaptarchive |
f107544e DK |
9 | |
10 | UPGRADEFAIL="Reading package lists... | |
11 | Building dependency tree... | |
2a884c61 | 12 | Calculating upgrade... |
f107544e DK |
13 | The following packages will be REMOVED: |
14 | conkeror libdatrie0 libkrb53 libxcb-xlib0 xulrunner-1.9 | |
15 | The following NEW packages will be installed: | |
16 | gcc-4.4-base libavahi-client3 libavahi-common-data libavahi-common3 libc-bin | |
17 | libdatrie1 libdb4.7 libdb4.8 libdbus-1-3 libgssapi-krb5-2 libjasper1 | |
18 | libk5crypto3 libkrb5-3 libkrb5support0 liblzma2 libpam-modules libpam0g | |
19 | libuuid1 libxcb-atom1 libxcb-aux0 libxcb-event1 libxml2 passwd | |
20 | sensible-utils shared-mime-info xz-utils | |
21 | The following packages will be upgraded: | |
22 | coreutils debconf debconf-i18n debianutils defoma dpkg file fontconfig | |
23 | fontconfig-config libacl1 libatk1.0-0 libattr1 libbz2-1.0 libc6 libcairo2 | |
24 | libcomerr2 libcups2 libexpat1 libfontconfig1 libfreetype6 libgcc1 | |
25 | libgcrypt11 libgdbm3 libglib2.0-0 libgnutls26 libgpg-error0 libgtk2.0-0 | |
26 | libgtk2.0-common libhunspell-1.2-0 libice6 libjpeg62 libkeyutils1 | |
27 | liblocale-gettext-perl libmagic1 libncurses5 libnewt0.52 libnspr4-0d | |
28 | libnss3-1d libpango1.0-0 libpango1.0-common libpcre3 libpixman-1-0 | |
29 | libpng12-0 libpopt0 libselinux1 libslang2 libsm6 libsqlite3-0 | |
30 | libstartup-notification0 libstdc++6 libtasn1-3 libtext-charwidth-perl | |
31 | libtext-iconv-perl libtext-wrapi18n-perl libthai-data libthai0 libtiff4 | |
32 | libx11-6 libx11-data libxau6 libxcb-render-util0 libxcb-render0 libxcb1 | |
33 | libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxft2 | |
34 | libxi6 libxinerama1 libxrandr2 libxrender1 libxt6 lsb-base ncurses-bin perl | |
35 | perl-base perl-modules readline-common sed ttf-dejavu-core ucf whiptail | |
36 | x11-common zlib1g | |
37 | 87 upgraded, 26 newly installed, 5 to remove and 0 not upgraded. | |
1054d76b DK |
38 | Need to get 0 B/54.4 MB of archives. |
39 | After this operation, 12.4 MB of additional disk space will be used. | |
f107544e DK |
40 | E: Trivial Only specified but this is not a trivial operation." |
41 | ||
42 | UPGRADESUCCESS="Reading package lists... | |
43 | Building dependency tree... | |
2a884c61 | 44 | Calculating upgrade... |
f107544e DK |
45 | The following packages will be REMOVED: |
46 | libdatrie0 libkrb53 libxcb-xlib0 xulrunner-1.9 | |
47 | The following NEW packages will be installed: | |
48 | gcc-4.4-base libasound2 libavahi-client3 libavahi-common-data | |
49 | libavahi-common3 libc-bin libdatrie1 libdb4.7 libdb4.8 libdbus-1-3 | |
50 | libgssapi-krb5-2 libjasper1 libk5crypto3 libkrb5-3 libkrb5support0 liblzma2 | |
51 | libmozjs2d libpam-modules libpam0g libreadline6 libuuid1 libxcb-atom1 | |
52 | libxcb-aux0 libxcb-event1 libxml2 passwd sensible-utils shared-mime-info | |
53 | xulrunner-1.9.1 xz-utils | |
54 | The following packages will be upgraded: | |
55 | conkeror coreutils debconf debconf-i18n debianutils defoma dpkg file | |
56 | fontconfig fontconfig-config libacl1 libatk1.0-0 libattr1 libbz2-1.0 libc6 | |
57 | libcairo2 libcomerr2 libcups2 libexpat1 libfontconfig1 libfreetype6 libgcc1 | |
58 | libgcrypt11 libgdbm3 libglib2.0-0 libgnutls26 libgpg-error0 libgtk2.0-0 | |
59 | libgtk2.0-common libhunspell-1.2-0 libice6 libjpeg62 libkeyutils1 | |
60 | liblocale-gettext-perl libmagic1 libncurses5 libnewt0.52 libnspr4-0d | |
61 | libnss3-1d libpango1.0-0 libpango1.0-common libpcre3 libpixman-1-0 | |
62 | libpng12-0 libpopt0 libselinux1 libslang2 libsm6 libsqlite3-0 | |
63 | libstartup-notification0 libstdc++6 libtasn1-3 libtext-charwidth-perl | |
64 | libtext-iconv-perl libtext-wrapi18n-perl libthai-data libthai0 libtiff4 | |
65 | libx11-6 libx11-data libxau6 libxcb-render-util0 libxcb-render0 libxcb1 | |
66 | libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxft2 | |
67 | libxi6 libxinerama1 libxrandr2 libxrender1 libxt6 lsb-base ncurses-bin perl | |
68 | perl-base perl-modules readline-common sed ttf-dejavu-core ucf whiptail | |
69 | x11-common zlib1g | |
70 | 88 upgraded, 30 newly installed, 4 to remove and 0 not upgraded. | |
1054d76b DK |
71 | Need to get 0 B/62.9 MB of archives. |
72 | After this operation, 36.0 MB of additional disk space will be used. | |
f107544e DK |
73 | E: Trivial Only specified but this is not a trivial operation." |
74 | ||
75 | # Test that the old behavior can be restored with the option | |
25b86db1 DK |
76 | testfailureequal "$UPGRADEFAIL" aptget dist-upgrade --trivial-only -o pkgProblemResolver::FixByInstall=0 |
77 | testfailureequal "$UPGRADESUCCESS" aptget dist-upgrade --trivial-only #-o pkgProblemResolver::FixByInstall=0 |