]> git.saurik.com Git - apt.git/blob - debian/apt.bug-script
avoid triggering gcc's -Wunsafe-loop-optimizations in EDSP
[apt.git] / debian / apt.bug-script
1 #!/bin/bash -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 et al)? [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 for config in /etc/apt/preferences /etc/apt/preferences.d/* /etc/apt/sources.list /etc/apt/sources.list.d/* ; 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
32 fi
33 done