4 TESTDIR
=$(readlink -f $(dirname $0)) 
   7 configarchitecture 
"i386" 
   9 insertpackage 
'unstable' 'libreoffice' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core' 
  10 insertpackage 
'unstable' 'libreoffice-core' 'all' '1:3.3.1~rc1-2' 'Conflicts: openoffice.org-core' 
  11 insertpackage 
'unstable' 'libreoffice-officebean' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core' 
  12 insertpackage 
'unstable' 'openoffice.org-officebean' 'all' '1:3.3.0-5' 'Depends: libreoffice-officebean' 
  16 touch rootdir
/var
/lib
/apt
/extended_states
 
  17 testsuccess aptmark markauto openoffice.org
-officebean 
  18 testmarkedauto openoffice.org
-officebean 
  19 AUTOREMOVE
='apt autoremove' 
  20 if [ -n "$SUDO_USER" ]; then 
  21         AUTOREMOVE
="sudo $AUTOREMOVE" 
  24 testfailureequal 
"Reading package lists... 
  25 Building dependency tree... 
  26 Reading state information... 
  27 The following packages were automatically installed and are no longer required: 
  28   libreoffice-officebean openoffice.org-officebean 
  29 Use '$AUTOREMOVE' to remove them. 
  30 The following additional packages will be installed: 
  31   libreoffice-core libreoffice-officebean openoffice.org-officebean 
  32 The following packages will be REMOVED: 
  34 The following NEW packages will be installed: 
  35   libreoffice libreoffice-core libreoffice-officebean 
  36 The following packages will be upgraded: 
  37   openoffice.org-officebean 
  38 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded. 
  39 After this operation, 126 MB disk space will be freed. 
  40 E: Trivial Only specified but this is not a trivial operation." aptget 
install libreoffice 
--trivial-only 
  41 testequal 
"Reading package lists... 
  42 Building dependency tree... 
  43 Reading state information... 
  44 2 packages were automatically installed and are no longer required. 
  45 Use '$AUTOREMOVE' to remove them. 
  46 The following additional packages will be installed: 
  47   libreoffice-core libreoffice-officebean openoffice.org-officebean 
  48 The following packages will be REMOVED: 
  50 The following NEW packages will be installed: 
  51   libreoffice libreoffice-core libreoffice-officebean 
  52 The following packages will be upgraded: 
  53   openoffice.org-officebean 
  54 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded. 
  55 After this operation, 126 MB disk space will be freed. 
  56 E: Trivial Only specified but this is not a trivial operation." aptget 
install libreoffice 
--trivial-only -o APT
::Get
::HideAutoRemove
=small