On 21/01/2022 18:22, Robert Riebisch via Svardos-users wrote:
Usually one would go back to the previous version first.
Maybe you can reverse the order of alternative versions?
So in your example "dosmid-0.9.5" would be the leftmost version. It's
easier to spot than at the end of the line, at least to me.
I know, and I pondered about that when implementing the thing, and came
to the conclusion that displaying packages in reverse might look like
pretending that the sort order is consistent with versioning (it's not).
Parsing version strings to figure out which one is older is not trivial.
I did that at some point, here:
https://sourceforge.net/p/fdnpkg/code/HEAD/tree/trunk/helpers.c#l27
I will probably re-implement a similar mechanism for sorting versions in
SvarDOS, but time is scarce so development is slow. :)
I didn't think about it very hard, but would it be useful to users to
backup the currently installed version before installing another version?
One of the goals I have in SvarDOS is to make it technically as simple
as possible - almost a bare bone DOS, but with an extra online "market
place" to make finding and downloading DOS apps easier. In such context,
I avoid any complex mechanisms - that's also the reason why packages are
downloaded by one tool, and installed by another. The user is free to do
anything he wants in the meantime (incl. archiving downloaded packages
somewhere if he wants to).
10 years ago I had created FDNPKG, which is nowadays the official
FreeDOS package manager. I made FDNPKG very complex, it does lots of
stuff automatically. I realized after a few years that it was a mistake.
Tools should be as simple as possible and work in a possibly transparent
ways so the users know exactly what is going. But that's my opinion. :)
Mateusz
_______________________________________________
Svardos-users mailing list
Svardos-users@lists.osdn.me
https://lists.osdn.me/mailman/listinfo/svardos-users