Package: borgmatic
Version: 2.0.11-2
Severity: minor
Hi,
during package install I noticed an error from the borgmatic package:
Setting up borgmatic (2.0.11-2)…
find: ‘/etc/borgmatic’: No such file or directory
The error probably comes from line 9 of borgmatic.postinst:
if [ "$1" = "configure" ]; then
if find /etc/borgmatic -maxdepth 1 -type f -name "*.yaml" -print -quit |
grep -q .; then
for i in /etc/borgmatic/*.yaml; do
# [ … run config file migration … ]
done
fi
fi
I find unnecessary error output during package install and upgrade irritating,
because I always suspect that there is something wrong that I have to fix (even
though in this case everything was fine, I obviously just didn't have any config
files that needed migrating when I installed the package).
The script could be improved here by adding an additional check
'[ -d /etc/borgmatic ] && ' to the 'if' call, or adding an empty /etc/borgmatic
directory to the package.
Cheers,
- Roland
-- System Information:
Debian Release: forky/sid
APT prefers testing-debug
APT policy: (991, 'testing-debug'), (991, 'testing'), (500,
'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable'), (400, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.11+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages borgmatic depends on:
ii borgbackup 1.4.3-2
ii python3 3.13.7-1
ii python3-jsonschema 4.25.1-2
ii python3-packaging 25.0-1
ii python3-requests 2.32.5+dfsg-1
ii python3-ruamel.yaml 0.18.10+ds-1
borgmatic recommends no packages.
Versions of packages borgmatic suggests:
pn apprise <none>
-- debconf-show failed