From: Michael Prokop Date: Wed, 20 May 2020 14:10:29 +0000 (+0200) Subject: DEBORPHAN/10-whitelist: rework fix for broken keep file handling of deborphan X-Git-Tag: v0.35.1~1 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=cb6179feeefcd3aed4b3812d54f734a8efe6179b;hp=cb6179feeefcd3aed4b3812d54f734a8efe6179b;p=grml-live.git 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). ---