]> git.saurik.com Git - apt.git/blob - debian/bugscript
* Patch from Otavio Salvador to avoid listing suggests/...
[apt.git] / debian / bugscript
1 #!/bin/sh -e
2
3 # reportbug #169495
4 if [ -z "$YESNO" ]; then
5 YESNO=$"yYnN"
6 fi
7
8 cat <<EOF
9 I can automatically include various information about your apt configuration in
10 your bug report. This information may help to diagnose your problem.
11
12 EOF
13
14 yesno "May I include your apt configuration (/etc/apt/apt.conf)? [Y/n] " yep
15
16 if [ "$REPLY" = "yep" ]; then
17 echo -e "\n-- apt-config dump --\n" >&3
18 apt-config dump >&3 2>&1
19 fi
20
21 if [ -f /etc/apt/preferences ]; then
22 yesno "May I include your apt preferences (/etc/apt/preferences)? [Y/n] " yep
23
24 if [ "$REPLY" = "yep" ]; then
25 echo -e "\n-- /etc/apt/preferences --\n" >&3
26 cat /etc/apt/preferences >&3
27 fi
28 fi
29
30 if [ -f /etc/apt/sources.list ]; then
31 yesno "May I include your sources.list (/etc/apt/sources.list)? [Y/n] " yep
32
33 if [ "$REPLY" = "yep" ]; then
34 echo -e "\n-- /etc/apt/sources.list --\n" >&3
35 cat /etc/apt/sources.list >&3
36 fi
37 fi