]> git.saurik.com Git - apt.git/blame - debian/bugscript
Add a more or less useful README file for everything related to MultiArch
[apt.git] / debian / bugscript
CommitLineData
6804503b 1#!/bin/bash -e
d9a38191
AL
2
3# reportbug #169495
4if [ -z "$YESNO" ]; then
5 YESNO=$"yYnN"
6fi
7
8cat <<EOF
9I can automatically include various information about your apt configuration in
10your bug report. This information may help to diagnose your problem.
11
12EOF
13
29bf2cfb 14yesno "May I include your apt configuration (/etc/apt/apt.conf et al)? [Y/n] " yep
d9a38191
AL
15
16if [ "$REPLY" = "yep" ]; then
17 echo -e "\n-- apt-config dump --\n" >&3
18 apt-config dump >&3 2>&1
19fi
20
29bf2cfb
AL
21for 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 33done