Open drbeco opened 3 months ago
I just made a small change to the source and I'll soon submit a Pull Request, if you be kind to take a look.
Thanks and keep up your amazing work.
Running this test:
$ time for P in $(\ls -f1 /var/log/packages/[a-zA-Z0-9]*) ; do slackpkg search $(basename ${P%-*-*-*}) | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g" ; done | grep -- "-->" | sort -u
in a real server gives the result:
[upgr] SBo : Bear-3.1.4-x86_64-1_SBo --> Bear-3.1.1-sbo-15.0
[upgr] SBo : alienbob:appstream-glib-0.8.1-x86_64-1alien --> appstream-glib-0.8.2-sbo-15.0
[upgr] SBo : alienbob:audacity-3.2.2-x86_64-1alien --> audacity-3.4.2-sbo-15.0
[upgr] SBo : alienbob:cabextract-1.4-x86_64-1alien --> cabextract-1.11-sbo-15.0
[upgr] SBo : alienbob:containerd-1.6.21-x86_64-1alien --> containerd-1.7.14-sbo-15.0
[upgr] SBo : alienbob:docker-24.0.2-x86_64-1alien --> docker-24.0.9-sbo-15.0
[upgr] SBo : alienbob:docker-compose-2.19.1-x86_64-1alien --> docker-compose-2.26.0-sbo-15.0
[upgr] SBo : alienbob:double-conversion-3.1.5-x86_64-1alien --> double-conversion-3.3.0-sbo-15.0
[upgr] SBo : alienbob:epson-inkjet-printer-escpr-1.4.5-x86_64-1alien --> epson-inkjet-printer-escpr-1.7.8-sbo-15.0
[upgr] SBo : alienbob:faad2-2.10.0-x86_64-1alien --> faad2-2.10.1-sbo-15.0
[upgr] SBo : alienbob:gcab-1.5-x86_64-1alien --> gcab-0.6-sbo-15.0
[upgr] SBo : alienbob:gcc5-5.5.0_multilib-x86_64-1alien --> gcc5-5.5.0-sbo-15.0
[upgr] SBo : alienbob:inkscape-1.2.2-x86_64-1alien --> inkscape-1.3.2-sbo-15.0
[upgr] SBo : alienbob:iscan-data-1.39.1-x86_64-1alien --> iscan-data-1.39.2-sbo-15.0
[upgr] SBo : alienbob:jq-1.6-x86_64-1alien --> jq-1.7.1-sbo-15.0
[upgr] SBo : alienbob:libass-0.14.0-x86_64-1alien --> libass-0.17.1-sbo-15.0
[upgr] SBo : alienbob:libcdr-0.1.7-x86_64-1alien --> libcdr-0.1.6-sbo-15.0
[upgr] SBo : alienbob:libdca-0.0.6-x86_64-1alien --> libdca-0.0.7-sbo-15.0
[upgr] SBo : alienbob:libmp4v2-4.1.3-x86_64-1alien --> libmp4v2-20191108_9084868-sbo-15.0
[upgr] SBo : alienbob:libsbsms-2.3.0-x86_64-1alien --> libsbsms-20220812_e6c9c3b-sbo-15.0
[upgr] SBo : alienbob:libshout-2.3.1-x86_64-1alien --> libshout-2.4.5-sbo-15.0
[upgr] SBo : alienbob:lilv-0.24.12-x86_64-2alien --> lilv-0.24.20-sbo-15.0
[upgr] SBo : alienbob:lua53-5.3.6-x86_64-1alien --> lua53-5.3.4-sbo-15.0
[upgr] SBo : alienbob:mbedtls-2.25.0-x86_64-1alien --> mbedtls-2.16.8-sbo-15.0
[upgr] SBo : alienbob:nodejs-20.0.0-x86_64-1alien --> nodejs-20.11.1-sbo-15.0
[upgr] SBo : alienbob:obs-studio-28.1.2-x86_64-1alien --> obs-studio-29.1.3-sbo-15.0
[upgr] SBo : alienbob:portaudio-190700_20210406-x86_64-1alien --> portaudio-19.7.0-sbo-15.0
[upgr] SBo : alienbob:portmidi-2.0.3-x86_64-1alien --> portmidi-2.0.2-sbo-15.0
[upgr] SBo : alienbob:pstoedit-3.75-x86_64-1alien --> pstoedit-3.77-sbo-15.0
[upgr] SBo : alienbob:runc-1.1.7-x86_64-1alien --> runc-1.1.12-sbo-15.0
[upgr] SBo : alienbob:scour-0.38.2-x86_64-2alien --> scour-0.35-sbo-15.0
[upgr] SBo : alienbob:soundtouch-2.1.2-x86_64-1alien --> soundtouch-2.3.1-sbo-15.0
[upgr] SBo : alienbob:vamp-plugin-sdk-2.8.0-x86_64-2alien --> vamp-plugin-sdk-2.9.0-sbo-15.0
[upgr] SBo : alienbob:x264-20240324-x86_64-1alien --> x264-git_20210613_5db6aa6c-sbo-15.0
[upgr] SBo : alienbob:xdg-desktop-portal-gtk-1.12.0-x86_64-1alien --> xdg-desktop-portal-gtk-1.4.0-sbo-15.0
[upgr] SBo : alienbob:zope.interface-4.1.0-x86_64-1alien --> zope.interface-6.2-sbo-15.0
[upgr] SBo : bitwarden-desktop-2024.3.0-x86_64-1_SBo --> bitwarden-desktop-2024.1.0-sbo-15.0
[upgr] SBo : nvidia-kernel-550.67_5.15.145-x86_64-1_SBo --> nvidia-kernel-550.67-sbo-15.0
[upgr] SBo : openzfs-2.2.3_5.15.145-x86_64-1_SBo --> openzfs-2.2.3-sbo-15.0
[upgr] SBo : restricted:libfdk-aac-2.0.2-x86_64-1alien --> libfdk-aac-2.0.3-sbo-15.0
[upgr] SBo : restricted:vlc-3.0.19-x86_64-1alien --> vlc-3.0.20-sbo-15.0
[upgr] SBo : virtualbox-kernel-6.1.44_5.15.145-x86_64-1_SBo --> virtualbox-kernel-6.1.44-sbo-15.0
[upgr] SBo : zig-0.11.0-x86_64-2_SBo --> zig-0.9.1-sbo-15.0
[upgr] alienbob : google-go-lang-1.22.1-x86_64-1_SBo --> google-go-lang-1.20.5-x86_64-1alien
real 6m4.906s
user 5m21.097s
sys 2m30.974s
From the results above, all seems good with 3 exceptions (bellow). These 5 got my attention:
[upgr] alienbob : google-go-lang-1.22.1-x86_64-1_SBo --> google-go-lang-1.20.5-x86_64-1alien
[upgr] SBo : alienbob:gcc5-5.5.0_multilib-x86_64-1alien --> gcc5-5.5.0-sbo-15.0
[upgr] SBo : nvidia-kernel-550.67_5.15.145-x86_64-1_SBo --> nvidia-kernel-550.67-sbo-15.0
[upgr] SBo : openzfs-2.2.3_5.15.145-x86_64-1_SBo --> openzfs-2.2.3-sbo-15.0
[upgr] SBo : virtualbox-kernel-6.1.44_5.15.145-x86_64-1_SBo --> virtualbox-kernel-6.1.44-sbo-15.0
The first 2 seems reasonable to show "upgradable", so the admin can decide for himself. But the last 3 are just noise, since they are the same, except that the SBo packages don't have arch in their names for obvious reasons. So, we would expect:
[upgr] alienbob : google-go-lang-1.22.1-x86_64-1_SBo --> google-go-lang-1.20.5-x86_64-1alien
[upgr] SBo : alienbob:gcc5-5.5.0_multilib-x86_64-1alien --> gcc5-5.5.0-sbo-15.0
[inst] SBo : nvidia-kernel-550.67-sbo-15.0
[inst] SBo : openzfs-2.2.3-sbo-15.0
[inst] SBo : virtualbox-kernel-6.1.44-sbo-15.0
I've addressed it in a second commit in the same PR.
It is now with a better comparison when dealing with SBo repo only.
Also, I had previously forgot to declare local variables, so there is that.
Hope to hear from you soon @zuno . Thanks
I've always wanted to see the output for the SBo section to be the same as the prior output, from the slackpkg section.
That is, for example, to tell if a package is installed or not: