-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Deliver latest package revision available for requested architecture #14
Comments
A long time ago, DSM refused to consider a package as an upgrade if the version was inferior by string comparison. I think this is to avoid having stable packages show as an upgrade of a beta package after switching back channel from stable to beta. It seems this could have changed with a more clever version parsing inside newer DSM versions. Needs to be checked. Version-based sorting is not easy for databases as they don't have the functions to deal with that. Add the filters (channel, architecture, DSM minimum version, active, etc.) and you have horrible code logic mixed with SQL. The best would be to find a cleaner solution to this issue, then I think the latest package for architecture issue would be easier to solve. |
A proposal: at publish, parse package version and create an integer from it (similar to firmware build sequence)... spkrepo may only keep "revision" alone, or implement a more complex numbering like major.10⁹+minor.10⁶+patch.10³+revision, expecting applications follow semantic versioning and do not dare to go over 999... (and support also dates based package version) |
With packages published for DSM 7 with a duplicate of same version for DSM 6, it looks like packages are "hidden"... My evansport DSM 6.2 Package Center currently shows no community nor beta packages.... |
In fact my "hidden" packages issue was related to expired SSL certificate. |
Hi @ymartin59, I've been addressing server improvements as part of task #112 to resolve several outstanding issues. @hgy59 highlighted this particular issue for further investigation, but I'm struggling to grasp its intricacies. Could you please share additional details to assist me in validating whether the current platform adequately addresses this concern? Thanks! |
Testing the original issue succeeds in #112 (instead of "not publishing for Y" I deactivated the recent revision for Y, and got the previous revision)
|
Hello. Here the question is about API which delivers latest package to DSM Package Manager according to its architecture. It was a concern when an architecture is deprecated or no longer supported, even if package receives updates for others. |
As far as I can observe this is how the API already worked. For example within the last several months there was an issue with SABnzbd causing crashes with the latest package versions on Am I misinterpreting the concern you were articulating? |
Code seems to search for latest package version without matching architecture first.
As a result, a recent package revision for an architecture X (without publishing for Y) may hide previous revision for architecture Y.
It sounds relevant spkrepo should deliver latest revision available
The text was updated successfully, but these errors were encountered: