Closed willeccles closed 3 years ago
My current build script for this system checks if dpkg
exists, and then if it doesn't, it simply removes everything from that script (my setup script installs the required dependencies anyway, so I don't really need this one to run in the first place). This isn't really relevant to the issue, I just thought it might be entertaining how aggressive my workaround for this is :)
@willeccles sure no problem. ;)
Thanks!
I use a Void Linux host system for development and have had to work around how this script works. It seems to me that it would be far simpler change how the function works. Rather than relying on
dpkg
's output (which fails on Void and non-Debian systems), one could simply change thedebootstrap_is_installed()
function to checkif command -v debootstrap >/dev/null
. Alternatively, you could check for the presence ofdpkg
in the first place, then if it's not found fall back to checking the output ofcommand -v
. I would be happy to open a PR for this if necessary.