From scrappy at hub.org Fri Jan 17 02:18:02 2020 From: scrappy at hub.org (Marc G Fournier) Date: Fri, 17 Jan 2020 07:18:02 +0000 Subject: [Midnightbsd-users] Upgrade to bsdstats Message-ID: <0100016fb25db01f-780002a5-b3fa-437e-b5ed-6513089b3489-000000@email.amazonses.com> Not sure where to send this ? lists seem a wee bit quite, bugtracker broken, but ? Attached is an update to bsdstats 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 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 300.statistics-20200116 Type: application/octet-stream Size: 16491 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From luke at foolishgames.com Sat Jan 18 13:34:31 2020 From: luke at foolishgames.com (Lucas Holt) Date: Sat, 18 Jan 2020 13:34:31 -0500 Subject: [Midnightbsd-users] Upgrade to bsdstats In-Reply-To: <0100016fb25db01f-780002a5-b3fa-437e-b5ed-6513089b3489-000000@email.amazonses.com> References: <0100016fb25db01f-780002a5-b3fa-437e-b5ed-6513089b3489-000000@email.amazonses.com> Message-ID: <0AF7D1F2-A06D-457F-87C9-0E008CBCE754@foolishgames.com> > On Jan 17, 2020, at 2:18 AM, Marc G Fournier wrote: > > > Not sure where to send this ? lists seem a wee bit quite, bugtracker broken, but ? > > Attached is an update to bsdstats 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 Lucas Holt Luke at FoolishGames.com ________________________________________________________ MidnightBSD.org (Free OS) JustJournal.com (Free blogging) -------------- next part -------------- An HTML attachment was scrubbed... URL: