Closed james-antill closed 4 years ago
Aha thanks for reporting this - yeah I think there is an implicit assumption of no package duplicates... I need to think how to address this. Is that expected for centos or a transient thing?
That's probably expected for stream, at least in the short term.
One thing that would make it much easier is if you could sort using a variant of "version sort" (https://www.gnu.org/software/coreutils/manual/html_node/Details-about-version-sort.html), rpmvercmp isn't exactly the same but it's much closer than lexical sort.
Yeah, thanks you are right that sort -V
basically does close to the right thing.
Edit: I found this reference more helpful here than this detailed algorithm.
Finally had time to look into this and pretty happy with the result. I will release 0.4 soon and push it to my copr repo. But do let me know if works for you or if you have more feedback, thanks.
If you look at the difference between two repos. which contain multiple versions of the same package) pkgtreediff gets confused about versions and what to report. Eg.
...gives this output:
Looking at the repos. directly we see (currently):
8:
8-stream:
...expected/desired output would be just: