Hi Mattia,

> > FYI I had to do something similar recently in src:xtrlock:
> > 
> > https://salsa.debian.org/debian/xtrlock/commit/eb0b4174c81fdb1b81926203af3bb8c7c34fdac9
> > 
> > Mattia, fancy implementing this? I believe you wrote the current
> > version check code.
> 
> i.e. just making sure the d/changelog version starts with the same
> string in diffoscope/__init__.py?

My change to xtrlock actually plays it safer than this and splits around
"+" on the basis that one is either doing a "+b1" or a "+localsuffix".

The danger of not doing this and taking the naive approach is that,
after all, "1" is a string prefix of "10"...


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] 🍥 chris-lamb.co.uk
       `-

Reply via email to