summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-04-26 03:51:23 +0200
committerGuillem Jover <guillem@debian.org>2018-05-04 04:39:28 +0200
commit6675001502ece8e72c8b3853a76a9b248b91b295 (patch)
treebec65fe753ecf2400dde526f3b8f2435d5cf6d64
parent80556f6590b4b2da3aaf14f5a27c1555b36f11a1 (diff)
downloaddpkg-6675001502ece8e72c8b3853a76a9b248b91b295.tar.gz
dpkg: Print the environment variables setup for the conffile shell
Make these variables more discoverable by printing them as a list before spawning the conffile shell.
-rw-r--r--debian/changelog2
-rw-r--r--src/configure.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f2a2ee0e6..1c45c41c5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -61,6 +61,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
options.
* Make dpkg-buildpackage validate OpenPGP signing key IDs length. Error out
for short key IDs and warn for long key IDs.
+ * On the dpkg conffile prompt, print the set of environment variables setup
+ for the conffile shell, for easier discoverability.
* Architecture support:
- Add support for riscv64 CPU. Closes: #822914
Thanks to Manuel A. Fernandez Montecelo <mafm@debian.org>
diff --git a/src/configure.c b/src/configure.c
index 3c565c61d..211663c18 100644
--- a/src/configure.c
+++ b/src/configure.c
@@ -229,6 +229,10 @@ spawn_shell(const char *confold, const char *confnew)
{
pid_t pid;
+ fputs(_("Useful environment variables:\n"), stderr);
+ fputs(" - DPKG_SHELL_REASON\n", stderr);
+ fputs(" - DPKG_CONFFILE_OLD\n", stderr);
+ fputs(" - DPKG_CONFFILE_NEW\n", stderr);
fputs(_("Type 'exit' when you're done.\n"), stderr);
pid = subproc_fork();