DEBORPHAN/10-whitelist: rework fix for broken keep file handling of deborphan
authorMichael Prokop <mika@grml.org>
Wed, 20 May 2020 14:10:29 +0000 (16:10 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 20 May 2020 14:19:42 +0000 (16:19 +0200)
commitcb6179feeefcd3aed4b3812d54f734a8efe6179b
tree52f67aad9b5c3c7ca9c20e28699acd6a35c6f08f
parentcd7c095b965f6cab4801b737cf5c8954bce1fa4a
DEBORPHAN/10-whitelist: rework fix for broken keep file handling of deborphan

An empty file doesn't help either, so we need at least a file
with a newline. Given that we're already touching the file
based on its hard-coded filename, let's just append the package
in question and avoid invoking deborphan at all. Especially
as deborphan returns with failure when a package is already
listed:

| deborphan: dnsutils: duplicate entry.

We need to handle this anyway, if grml-live is re-executed on
an existing system (which isn't unusual).
etc/grml/fai/config/scripts/DEBORPHAN/10-whitelist