Comparing text strings

Cameron Simpson cs at cskk.id.au
Mon Apr 12 22:23:20 EDT 2021


On 12Apr2021 19:11, Rich Shepard <rshepard at appl-ecosys.com> wrote:
>On Tue, 13 Apr 2021, Cameron Simpson wrote:
>>Alternatively, and now that I think about it, more simply: _if_ the
>>package files can be sorted by version, then all you need to do is read a
>>sorted listing and note that latest fil for a particular package. If you
>>need another one, it should be newer and you can remove the "known"
>>package file, and update your record that to the new one.
>
>The problem is not that simple. Sometimes the package maintainer upgrades
>the package for the same version number so there could be abc-1.0_1_SBo.tgz
>and abc-1.0_2_SBo.tgz. The more involved route will be taken.

If that _1, _2 thing is like RedHat's -1, -2 suffixes for later releases 
of the same source package version, you could just include that in the 
version string. Looks like it counts up.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Python-list mailing list