test-ubuntu-bug-784473-InRelease-one-message-only 986 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'i386'
  7. insertpackage 'unstable' 'apt' 'i386' '0.8.11'
  8. export APT_DONT_SIGN='Release.gpg'
  9. setupaptarchive --no-update
  10. find aptarchive/ -name 'InRelease' -exec cp {} {}.old \;
  11. for RELEASE in $(find aptarchive/ -name 'InRelease'); do
  12. (echo 'Origin: Marvin
  13. Label: Marvin
  14. Suite: experimental
  15. Codename: experimental
  16. MD5Sum:
  17. 65fd410587b6978de2277f2912523f09 9360 Packages
  18. d27b294ed172a1fa9dd5a53949914c5d 4076 Packages.bz2
  19. 2182897e0a2a0c09e760beaae117a015 2023 Packages.diff/Index
  20. 1b895931853981ad8204d2439821b999 4144 Packages.gz'; echo; cat ${RELEASE}.old;) > ${RELEASE}
  21. done
  22. testfailure aptget update
  23. testsuccess grep '^E:.*Clearsigned file .*NOSPLIT.*' rootdir/tmp/testfailure.output
  24. ROOTDIR="$(readlink -f .)"
  25. testsuccessequal "Package files:
  26. 100 ${ROOTDIR}/rootdir/var/lib/dpkg/status
  27. release a=now
  28. Pinned packages:" aptcache policy