update-smart-drivedb does not work with gpg even if gnupg is installed
/usr/local/sbin/update-smart-drivedb: gpg: not found ('--no-verify' to ignore)
The problem is this PATH in update-smart-drivedb script
Script cannot find gpg executable installed in to /usr/local/bin/gpg
Adding /usr/local/bin to PATH should fix it.
If this script depends on gpg, then it should be listed as package dependency. (maybe optional)
Thank you for the report. I will look on it next days to find an optimal solution. GPG is used only to validate updates.
1. update-smart-drivedb does not set PATH variable and works fine if /usr/local/bin/ is in it. So it is not a script issue but your env issue. And i dont want to override PATH from the script
2. Not sure if that dependency is really needed - this is only updater dependency and it could be skipped using --no-verify option
Anyway, if you feel that it needed - please propose a patch and reopen the ticket
I am on smartmontools-6.6_2 and it definitely sets PATH:
# head -n 30 /usr/local/sbin/update-smart-drivedb | egrep -v '^#'
I'll try 7.0 soon.
Please dont report bugs on outdated packages, always use latest one.
P.S. there is PATH on 7.0 but it has /usr/local/bin in it.
Please close this pr. I am not able to reproduce this, reporter is not responding.