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.
 
 
 
 
 
 

26 lines
802 B

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. export APT_DONT_SIGN='Release.gpg'
  8. insertpackage 'unstable' 'foo' 'i386' '1.0'
  9. setupaptarchive "now" "now + 1 year"
  10. changetowebserver
  11. SIXPACK="$(aptkey --keyring keys/joesixpack.pub finger | grep 'Key fingerprint' | cut -d'=' -f 2 | tr -d ' ')"
  12. testsuccess aptget update
  13. msgmsg 'Warm archive with signed-by' 'Joe Sixpack'
  14. sed -i "/^Valid-Until: / a\
  15. Signed-By: ${SIXPACK}" rootdir/var/lib/apt/lists/*Release
  16. touch -d 'now - 1 year' rootdir/var/lib/apt/lists/*Release
  17. testsuccessequal "Get:1 http://localhost:${APTHTTPPORT} unstable InRelease [$(stat -c '%s' 'aptarchive/dists/unstable/InRelease') B]
  18. Reading package lists..." aptget update
  19. testsuccess aptcache show foo