You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.3 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. insertinstalledpackage 'gedit' 'amd64' '1'
  8. insertpackage 'unstable' 'gedit' 'amd64' '1'
  9. insertpackage 'experimental' 'gedit' 'amd64' '2' 'Depends: common (>= 2)'
  10. setupaptarchive
  11. testfailureequal "Reading package lists...
  12. Building dependency tree...
  13. Selected version '2' (experimental [amd64]) for 'gedit'
  14. Some packages could not be installed. This may mean that you have
  15. requested an impossible situation or if you are using the unstable
  16. distribution that some required packages have not yet been created
  17. or been moved out of Incoming.
  18. The following information may help to resolve the situation:
  19. The following packages have unmet dependencies:
  20. gedit : Depends: common (>= 2) but it is not installable
  21. E: Unable to correct problems, you have held broken packages." aptget install gedit/experimental -sq=0
  22. insertinstalledpackage 'common' 'amd64' '2'
  23. testsuccessequal "Reading package lists...
  24. Building dependency tree...
  25. Selected version '2' (experimental [amd64]) for 'gedit'
  26. The following packages will be upgraded:
  27. gedit
  28. 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  29. Inst gedit [1] (2 experimental [amd64])
  30. Conf gedit (2 experimental [amd64])" aptget install gedit/experimental -sq=0