Package: how-can-i-help
Version: 6
Severity: normal

When the HOME environment variable is undefined, how-can-i-help's APT
hook fails with:

  /usr/bin/how-can-i-help:29:in `home': couldn't find HOME environment -- 
expanding `~' (ArgumentError)
          from /usr/bin/how-can-i-help:29:in `<main>'
  E: Problem executing scripts DPkg::Post-Invoke '[ ! -e 
/usr/bin/how-can-i-help ] || /usr/bin/how-can-i-help'
  E: Sub-process returned an error code

The situation in which I encountered this is on my laptop, where
how-can-i-help is installed with no specific customization, when apt-get
is run by puppet to install missing packages.

Aside from my specific use case, it seems a good idea to make
how-can-i-help (or at least the APT hook) more robust to cope with the
absence of $HOME.  If that is really needed, failing graciously by doing
nothing would be a suitable alternative for the APT hook.

Many thanks for how-can-i-help, I love it!
Cheers.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages how-can-i-help depends on:
ii  ruby         1:2.0.0.2
ii  ruby-debian  0.3.8+b3
ii  ruby-json    1.8.1-1

how-can-i-help recommends no packages.

how-can-i-help suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to