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.
 
 
 
 
 
 

46 lines
1.8 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'amd64'
  7. setupaptarchive --no-update
  8. testsuccess apt update
  9. testsuccess apt update --no-download
  10. echo 'deb ftp://ftp.tlh.debian.org/debian zurg main' > rootdir/etc/apt/sources.list.d/ftpshutdown.list
  11. cat > rootdir/var/lib/apt/lists/ftp.tlh.debian.org_debian_dists_zurg_Release <<EOF
  12. Origin: Debian
  13. Label: Debian
  14. Suite: unreleased
  15. Codename: zurg
  16. Date: Fri, 14 Jul 2017 11:34:35 +0000
  17. Architectures: amd64
  18. Components: main
  19. Description: Debian x.y Zurg - Not Released
  20. EOF
  21. chmod 644 rootdir/var/lib/apt/lists/ftp.tlh.debian.org_debian_dists_zurg_Release
  22. testwarningequal "Reading package lists...
  23. Building dependency tree...
  24. All packages are up to date.
  25. W: Debian shuts down public FTP services currently still used in your sources.list(5) as 'ftp://ftp.tlh.debian.org/debian/'.
  26. See press release https://debian.org/News/2017/20170425 for details." apt update --no-download
  27. echo 'deb http://apt:debian@ftp.tlh.debian.org/debian zurg main' > rootdir/etc/apt/sources.list.d/ftpshutdown.list
  28. testsuccessequal "Reading package lists...
  29. Building dependency tree...
  30. All packages are up to date.
  31. N: Usage of apt_auth.conf(5) should be preferred over embedding login information directly in the sources.list(5) entry for 'http://ftp.tlh.debian.org/debian'" apt update --no-download
  32. echo 'deb tor+https://apt:debian@ftp.tlh.debian.org/debian zurg main' > rootdir/etc/apt/sources.list.d/ftpshutdown.list
  33. testsuccessequal "Reading package lists...
  34. Building dependency tree...
  35. All packages are up to date.
  36. N: Usage of apt_auth.conf(5) should be preferred over embedding login information directly in the sources.list(5) entry for 'tor+https://ftp.tlh.debian.org/debian'" apt update --no-download