skip-bug-711456-apt-cdrom-multiple-cds-multiarch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64' 'i386'
  7. buildsimplenativepackage 'testing' 'amd64,i386' '0.8.15' 'stable' 'Depends: libtest'
  8. buildsimplenativepackage 'libtest' 'amd64,i386' '0.8.15' 'stable' 'Multi-Arch: same'
  9. buildsimplenativepackage 'libtest' 'amd64,i386' '1' 'unstable' 'Multi-Arch: same'
  10. # needed by the ftparchive.conf
  11. cd aptarchive
  12. ln -s ../incoming pool
  13. createaptftparchiveconfig
  14. cd - >/dev/null
  15. # create an amd64 cdrom
  16. sed -i 's#Architectures .*$#Architectures "amd64 source";#' aptarchive/ftparchive.conf
  17. setupaptarchive --no-update
  18. changetocdrom 'Debian APT Testdisk amd64 0.8.15'
  19. mv rootdir/media/cdrom rootdir/media/cdrom-amd64
  20. addtrap 'prefix' "chmod -R +w $PWD/rootdir/media/cdrom-amd64/dists/;"
  21. chmod -R -w rootdir/media/cdrom-amd64/dists
  22. ln -s $PWD/rootdir/media/cdrom-amd64 $PWD/rootdir/media/cdrom
  23. aptcdrom add -m -o quiet=1
  24. rm $PWD/rootdir/media/cdrom
  25. # do it again to create a i386 cdrom
  26. sed -i 's#Architectures .*$#Architectures "i386 source";#' aptarchive/ftparchive.conf
  27. setupaptarchive --no-update
  28. changetocdrom 'Debian APT Testdisk i386 0.8.15'
  29. mv rootdir/media/cdrom rootdir/media/cdrom-i386
  30. addtrap 'prefix' "chmod -R +w $PWD/rootdir/media/cdrom-i386/dists/;"
  31. chmod -R -w rootdir/media/cdrom-i386/dists
  32. ln -s $PWD/rootdir/media/cdrom-i386 $PWD/rootdir/media/cdrom
  33. aptcdrom add -m -o quiet=1
  34. # play with the cdroms
  35. testdpkgnotinstalled testing
  36. aptget install testing -t stable -y #> /dev/null 2>&1
  37. testdpkginstalled testing
  38. testdpkgnotinstalled testing:i386
  39. aptget install testing:i386 -t stable -y #> /dev/null 2>&1
  40. testdpkginstalled testing:i386
  41. aptget dist-upgrade -y