This change seems to do the trick for me:

    def long_version(self):

        '''long version'''

        with open(self.changelog) as f:

            line = f.readline()

        m = re.match(r'^(\S+) \((\S+)\)', line)

        if not m:

            fail("could not parse package version (from '{}')", line.strip())

        version = m.group(2)

        x = re.match(r'^(\d+:)?(.+)$', version)

        return x.group(2)



On 09/07/2017 08:51 AM, Debian Bug Tracking System wrote:
> Thank you for filing a new Bug report with Debian.
>
> You can follow progress on this Bug here: 874578: 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874578.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  Tomasz Buchert <[email protected]>
>
> If you wish to submit further information on this problem, please
> send it to [email protected].
>
> Please do not send mail to [email protected] unless you wish
> to report a problem with the Bug-tracking system.
>

Reply via email to