-
Notifications
You must be signed in to change notification settings - Fork 177
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
Small changes to Npackd #863
Comments
Hey, thanks for the interest!
Yes, plus the parser code.
Done.
That's the problem as it can't be done reliably. I could cut everything before the last
Well the main problems are package naming and versioning. Regarding the latter, the problem is that npackd doesn't seem to handle prerelease and letter versions - several cases I've seen use incompatible version mangling (firefox |
I renamed the packages as follows: battle.net_kor => battle-net Could you please remove https://www.npackd.org/rep/xml?tag=libs from Repology (it's kind of experimental) and use the last part before dot in package names? |
Normalization enabled, and unique packages are no longer hidden. After couple of hours, you'll see npackd packages which have not matched to other repositories here. These which could be matched to other repos (but weren't because of different naming; see the ∗ hint which suggests possible matches) could be renamed in npackd, or matched through adding Repology rule. Possible improvements
|
|
Ok. Note that though rules for different spelling are generally fine (e.g.
This is not a problem, as numerical components are compared numerically, and leading zeroes do not affect the result. Not handling letters is a problem though, and while it's there npack cannot be allowed to generate newest versions (a lot of people get upset if fake newest versions are generated). The effect of this is that Repology can miss some actual new releases it could get from npackd (which is as far as I can see pretty good maintained), and npack statistics and list of newest/outdated packages may be incomplete. See the complete list of affected npackd packages.
For the concrete comparison algorithms you can check out a library used in Repology itself or Debian version comparison explanation. Also, many repositories use a notion of epochs, an additional version component which takes higher precedence than upstream version, which you may use to force right comparison even if your comparison algorithm doesn't cope. It's also used to force version downgrade or to handle incompatible upstream version schema changes. |
Well, in this case there are probably only a few packages that can be matched using mapping rules. Maybe even removing all "-" characters will show them. I still like the Npackd scheme for version numbers better and do not plan to add letters, especially as I see version numbers like 2.9.0.r367.fc370bbebf on Repology. It would be beneficial if you could link to the versioning rules (what is valid and how to determine which one is newer) and package naming rules used by Repology from the home page. I guess, this issue can be closed and I will file other, if necessary. Thank you. |
Then the newest versions from npackd will have to remain ignored, unfortunately. Repology does not tolerate fake versions and cannot bother all e.g. Firefox maintainers with notifications on a non-existing new Firefox release.
This is the very same fake version which has nothing to do with upstream, which is (or should be) ignored. Unlike version corruption though, snapshot versions are inevitable (though more commonly used format of them is e.g.
This is planned, se #852, already partially implemented in the Docs section on the site. |
You're welcome 👍 |
First of all, thank you for adding Npackd.
Please change all references from https://npackd.appspot.com to https://www.npackd.org
In https://github.com/repology/repology/blob/master/repology/parsers/parsers/npackd.py the comment says about different naming schemes and mentions quazip source packages. Please handle all package names as possibly prefixed with a domain name and just ignore the exceptions (these are just wrongly named).
If there is anything I can change in Npackd to make it better/easier for you, let me know.
The text was updated successfully, but these errors were encountered: