[Users] Couple of snags now I have Fedora 31

Brian Morrison bdm at fenrir.org.uk
Tue Oct 29 17:08:11 CET 2019


On Tue, 29 Oct 2019 18:01:02 +0100
"Paul Rolland (ポール・ロラン)" <rol at witbe.net> wrote:

> Hello,
> 
> On Tue, 29 Oct 2019 15:24:00 +0000
> Brian Morrison <bdm at fenrir.org.uk> wrote:
> 
> > touch config.h.in
> >   File "./tools/gitlog2changelog.py", line 72
> >     elif re.match('    git-svn-id:', line) >= 0:  
> 
> maybe testing first "is not None" (for python3) and adding "or ... >= 0"
> while taking care of saving the re.match() result in a variable to avoid
> the double call in case the "or " is executed ?
> 
> Would be something like:
>    else:
>       res = re.match('    git-svn-id:', line)
>       if res is not None or res >= 0:
>           ....

It's actually indentation, the continue needs to be indented the same
amount as the other instructions after the elif, 8 spaces not 4.

Fedora has also made a lot of changes with python2, it turns out that
the python plugin is not built as standard now, I've installed the
latest src rpm and rebuilt. Will have to see what other fallout there
is from the changes in Fedora 31.

Ah, the bleeding edge!

-- 

Brian Morrison

                "I am not young enough to know everything"
                                                          Oscar Wilde


More information about the Users mailing list