-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KERNEL] Implement kernel release comparison against <www.kernel.org> #94
Conversation
Hello @SomethingGeneric ! My thoughts about you feature below :
Thanks, bye 👋 |
Hi! It didn't occur to me to put it in I think it's an extra interesting comparison on non-rolling distros, like how Debian is still on And I'll modify to use |
I'm sure there's a more elegant way to go about displaying both attributes in the |
At the moment, it does not (entries have always work independently in the past), but one day it may.
Since the rework done in #70, yes, an entry may now be defined by an arbitrary serializable object.
4.19 for Debian 😉
Thanks for
[RFC] What do you think about:
A new configuration key would be added to For API, {
"release": "X.YY.ZZZ-RR-ARCH",
"latest": "T.UU.VVV",
"is_outdated": false
}
I'll deal with tests. 'waiting for your input ! EDIT : I've ended up implementing my proposal on your (rebased) branch, tell me what you think about that 👌 |
Hey! I like the style you suggest! Environment singleton is a clean method for accesssing Comparison would also be cool. Perhaps a regex to get rid of the |
Yes, the object will be loaded only once and this way "computations" around Comparison is already implemented. As we convert the release from a string to 👋 |
Awesome! Is there anything else you'd like me to do to get this closed & ready? |
Nothing, bar testing this locally if you could (and not already done) 👌 |
Just because You reminded me of the *BSD cases, I've published a patch to only retrieve the latest kernel release on GNU/Linux platforms (to avoid inconsistency between incomparable kernels). If it's OK for you now, I'm ready to merge this (I've also cleaned up your branch so we won't have to squash the whole thing up).
Is your Slackware up-to-date ? I've noticed your 👋 EDIT : Build is currently failing against Pypy due to actions/setup-python#171. |
So I did have quite a bunch of outdated stuff, but it's worth mentioning that I did make sure to have a custom config in Slackware, which still didn't yield a kernel comparison. Also perhaps worth nothing in README that Slack doesn't have Python3 in official repos, perhaps? Also when you say
I assume you mean working on future BSD support, right? I tried running it on FreeBSD which is what lead me to notice it didn't work, and that there's an issue for it. Anyway, in regards to merging this, at least on my main machine, I don't see why not. |
So I've updated Slack, and sensors is unhappy still. I think that's just a VM thing, as If someone running Slack for real has the same issue with Anyway, both of my platforms are working fine as far as this pull is concerned! :) |
Well, I think getting Python installed on its environment is a separate concern from an Archey PoV.
About that, I meant anticipating the *BSD support (as you pointed out, #69 is on its way) and not breaking more things while it's not there 😮
Awesome, let's go then 🙇
JSON output support landed in
👌 💯 |
My changes add an entry file which queries kernel.org for the latest stable kernel version.
Description
archey/entries/kernel_latest
- entry classarchey/__main__
- added import forkernel_latest
and subsequently to theEntries
enumsetup.py
- I'm lazy and I used pythonrequests
(Sorry if I should've used a builtin, that can change?)Reason and / or context
I saw that kernel.org has metadata for latest kernel, and I think it's neat to see how out of date (or not?) your distribution's kernel is.
How has this been tested ?
Only tested on my Arch machine. However, I can't think of any way it would cause issues.
TODO I don't really know how to write tests, so my pull doesn't include one.
(The only issue would be if the host doesn't have a connection, but I think the other net related ones also fail unsafely?)
Types of changes :
Checklist :
develop
branch ;