Hello community ;
i-MSCP come now with its own implementation of the lsb_release command. That avoids to run too many external commands to get distribution-specific information, and we also gains in performance for the following reasons:
- All needed data are retrieved once
- A little bug from the lsb_release command (as re-implemented by the Debian LSB team) has been fixed (don't query apt-cache policy when not needed - not reported at this moment)
...
The i-MSCP implementation of the lsb_release command is same as the one provided by the lsb-release Debian package but the code was rewritten in Perl (from python) and adapted for i-MSCP specific usage. Also, the code part related to LSB modules has been discarded.
To see the changes, see: https://github.com/i-MSCP/imsc…36e5cb4efb50654c39616b807
Cheers ;