]> git.saurik.com Git - apt.git/blame_incremental - debian/apt.bug-script
test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use downloadfile()
[apt.git] / debian / apt.bug-script
... / ...
CommitLineData
1#!/bin/bash -e
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
14yesno "May I include your apt configuration (/etc/apt/apt.conf et al)? [Y/n] " yep
15
16if [ "$REPLY" = "yep" ]; then
17 echo -e "\n-- apt-config dump --\n" >&3
18 apt-config dump >&3 2>&1
19fi
20
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
32 fi
33done