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.
 
 
 
 
 
 

36 lines
753 B

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'native'
  7. cat > aptarchive/Sources <<EOF
  8. Package: space-before-comma
  9. Binary: space-before-comma1 , space-before-comma2
  10. Version: 1.0
  11. Maintainer: Joe Sixpack <joe@example.org>
  12. Architecture: all
  13. Package: broken-field
  14. Binary:, broken-field2
  15. Version: 1.0
  16. Maintainer: Joe Sixpack <joe@example.org>
  17. Architecture: all
  18. Package: broken-field-b
  19. Binary: , broken-field-b2
  20. Version: 1.0
  21. Maintainer: Joe Sixpack <joe@example.org>
  22. Architecture: all
  23. EOF
  24. setupaptarchive --no-update
  25. testsuccess aptget update
  26. testsuccess aptcache showsrc space-before-comma1
  27. testsuccess aptcache showsrc broken-field2
  28. testsuccess aptcache showsrc broken-field-b2