]>
Commit | Line | Data |
---|---|---|
d9a38191 AL |
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 | ||
29bf2cfb | 14 | yesno "May I include your apt configuration (/etc/apt/apt.conf et al)? [Y/n] " yep |
d9a38191 AL |
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 | ||
29bf2cfb AL |
21 | for config in /etc/apt/preferences /etc/apt/sources.list; do |
22 | if [ -f $config ]; then | |
23 | yesno "May I include your $config configuration file? [Y/n] " yep | |
24 | if [ "$REPLY" = "yep" ]; then | |
25 | echo -e "\n-- $config --\n" >&3 | |
26 | cat $config >&3 | |
27 | else | |
28 | echo -e "\n-- ($config present, but not submitted) --\n" >&3 | |
29 | fi | |
30 | else | |
31 | echo -e "\n-- (no $config present) --\n" >&3 | |
d9a38191 | 32 | fi |
29bf2cfb | 33 | done |