bugscript 908 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh -e
  2. # reportbug #169495
  3. if [ -z "$YESNO" ]; then
  4. YESNO=$"yYnN"
  5. fi
  6. cat <<EOF
  7. I can automatically include various information about your apt configuration in
  8. your bug report. This information may help to diagnose your problem.
  9. EOF
  10. yesno "May I include your apt configuration (/etc/apt/apt.conf)? [Y/n] " yep
  11. if [ "$REPLY" = "yep" ]; then
  12. echo -e "\n-- apt-config dump --\n" >&3
  13. apt-config dump >&3 2>&1
  14. fi
  15. if [ -f /etc/apt/preferences ]; then
  16. yesno "May I include your apt preferences (/etc/apt/preferences)? [Y/n] " yep
  17. if [ "$REPLY" = "yep" ]; then
  18. echo -e "\n-- /etc/apt/preferences --\n" >&3
  19. cat /etc/apt/preferences >&3
  20. fi
  21. fi
  22. if [ -f /etc/apt/sources.list ]; then
  23. yesno "May I include your sources.list (/etc/apt/sources.list)? [Y/n] " yep
  24. if [ "$REPLY" = "yep" ]; then
  25. echo -e "\n-- /etc/apt/sources.list --\n" >&3
  26. cat /etc/apt/sources.list >&3
  27. fi
  28. fi