test-bug-549968-install-depends-of-not-installed 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertpackage 'unstable' 'libc6' 'all' '1.0'
  8. insertpackage 'unstable' 'coolstuff' 'all' '1.0' 'Recommends: extracoolstuff'
  9. insertpackage 'unstable' 'extracoolstuff' 'all' '1.0' 'Depends: libc6'
  10. setupaptarchive
  11. # We check the Markers here as the autoremove nuker will also
  12. # prevent it, but to late - its better to fail earlier
  13. testsuccessequal "Reading package lists...
  14. Building dependency tree...
  15. MarkInstall coolstuff:i386 < none -> 1.0 @un puN IPb > FU=1
  16. Ignore MarkInstall of extracoolstuff:i386 < none | 1.0 @hn puH > as its mode (Keep) is protected
  17. Package 'extracoolstuff' is not installed, so not removed
  18. Recommended packages:
  19. extracoolstuff
  20. The following NEW packages will be installed:
  21. coolstuff
  22. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  23. Inst coolstuff (1.0 unstable [all])
  24. Conf coolstuff (1.0 unstable [all])" aptget install coolstuff extracoolstuff- -o Debug::pkgDepCache::Marker=1 -s