72 lines
3.2 KiB
Bash
Executable file
72 lines
3.2 KiB
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
TESTDIR="$(readlink -f "$(dirname "$0")")"
|
|
. "$TESTDIR/framework"
|
|
setupenvironment
|
|
configarchitecture "i386"
|
|
|
|
insertpackage 'unstable' 'unrelated' 'all' '1:3.3.0-2'
|
|
insertpackage 'unstable' 'python-uno' 'all' '1:3.3.0-2' 'Depends: libreoffice-common'
|
|
insertpackage 'unstable' 'libreoffice-common' 'all' '1:3.3.0-2' 'Conflicts: openoffice.org-common'
|
|
|
|
setupaptarchive
|
|
|
|
touch rootdir/var/lib/apt/extended_states
|
|
testsuccess aptmark markauto python-uno openoffice.org-common
|
|
#aptmark unmarkauto openoffice.org-emailmerge
|
|
testmarkedauto python-uno openoffice.org-common
|
|
|
|
# The 3.0 solver does not remove openoffice.org-emailmerge because it is manually installed.
|
|
testfailuremsg "E: Unable to satisfy dependencies. Reached two conflicting decisions:
|
|
1. openoffice.org-common:i386=1:3.2.1-11+squeeze2 is not selected for install because:
|
|
1. python-uno:i386=1:3.3.0-2 is selected as an upgrade
|
|
2. python-uno:i386=1:3.3.0-2 Depends libreoffice-common
|
|
3. libreoffice-common:i386 Conflicts openoffice.org-common
|
|
2. openoffice.org-common:i386=1:3.2.1-11+squeeze2 is selected for install because:
|
|
1. openoffice.org-emailmerge:i386 is selected for install
|
|
2. openoffice.org-emailmerge:i386 PreDepends openoffice.org-common
|
|
3. openoffice.org-common:i386 is available in version 1:3.2.1-11+squeeze2" aptget --trivial-only install python-uno --solver 3.0
|
|
testfailureequal 'Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
The following additional packages will be installed:
|
|
libreoffice-common
|
|
The following packages will be REMOVED:
|
|
openoffice.org-common openoffice.org-emailmerge
|
|
The following NEW packages will be installed:
|
|
libreoffice-common
|
|
The following packages will be upgraded:
|
|
python-uno
|
|
1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
|
|
Need to get 0 B/84 B of archives.
|
|
After this operation, 53.2 MB disk space will be freed.
|
|
E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno --solver internal
|
|
|
|
testsuccess aptmark markauto openoffice.org-emailmerge
|
|
testmarkedauto python-uno openoffice.org-common openoffice.org-emailmerge
|
|
|
|
testfailureequal 'Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
The following additional packages will be installed:
|
|
libreoffice-common
|
|
The following packages will be REMOVED:
|
|
openoffice.org-common openoffice.org-emailmerge
|
|
The following NEW packages will be installed:
|
|
libreoffice-common
|
|
The following packages will be upgraded:
|
|
python-uno
|
|
1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
|
|
Need to get 0 B/84 B of archives.
|
|
After this operation, 53.2 MB disk space will be freed.
|
|
E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno
|
|
|
|
testfailureequal 'Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
The following packages will be REMOVED:
|
|
openoffice.org-common openoffice.org-emailmerge python-uno
|
|
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
|
|
After this operation, 53.3 MB disk space will be freed.
|
|
E: Trivial Only specified but this is not a trivial operation.' aptget autoremove --trivial-only
|