[Midnightbsd-users] Upgrade to bsdstats
Lucas Holt
luke at foolishgames.com
Sat Jan 18 13:34:31 EST 2020
> On Jan 17, 2020, at 2:18 AM, Marc G Fournier <scrappy at hub.org> wrote:
>
>
> Not sure where to send this … lists seem a wee bit quite, bugtracker broken, but …
>
> Attached is an update to bsdstats <http://bsdstats.org/> tested on latest MidnightBSD, that fixes a bug in device reporting, and extends ports reporting to work with the mport system …
>
> Let me know if anyone has any questions / problems …
>
Thanks for the updated script. I’ve updated the port and also fixed our bug tracker. Sorry about that.
I did make a slight modification. In the get_mports function, I switched to using /usr/libexec/mport.list | xargs which will gave a list of currently installed packages. I also switched to using the master.db rather than index.db. Master contains packages actually installed on the system whereas index.db is the list of packages available. Since the user might not have updated all of their packages, it made more sense to me to report the versions installed. Also if the user were to install a port that’s newer than the last package build, it will still work by using master. Everything is created as a package first before getting installed in MidnightBSD so master should always match what’s installed.
You can see the modifications in github
https://github.com/MidnightBSD/mports/blob/master/sysutils/bsdstats/files/300.statistics.in <https://github.com/MidnightBSD/mports/blob/master/sysutils/bsdstats/files/300.statistics.in>
Lucas Holt
Luke at FoolishGames.com
________________________________________________________
MidnightBSD.org (Free OS)
JustJournal.com (Free blogging)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.midnightbsd.org/pipermail/midnightbsd-users/attachments/20200118/36457e9a/attachment-0001.htm>
More information about the Midnightbsd-users
mailing list