Am Freitag, den 22.02.2019, 10:59 +0100 schrieb Thomas Trepl via blfs-
dev:
> Am Freitag, den 22.02.2019, 10:19 +0100 schrieb Pierre Labastie via
> blfs-dev:
> > On 22/02/2019 07:11, Bruce Dubbs via blfs-dev wrote:
> > > We only have a few tags left:
> > > 
> > > lfs83 tags:  33
> > > ;fs84 tags: 803
> > > 
> > > ...
> > > networking/mailnews/fetchmail.xml:    &lfs83_checked;
> > > ...
> 
> Just looking at fetchmail. I got 
> 
> ...
> test -z "/usr/lib/python3.7/site-packages" || /bin/mkdir -p
> "/home/lfs/tmp/fetchmail/bin/fetchmail/usr/lib/python3.7/site-
> packages"
>  /usr/bin/install -c -m 644 fetchmailconf.py
> '/home/lfs/tmp/fetchmail/bin/fetchmail/usr/lib/python3.7/site-
> packages'
> Byte-compiling python modules...
> fetchmailconf.py
> Sorry: TabError: inconsistent use of tabs and spaces in indentation
> (fetchmailconf.py, line 19)
> Byte-compiling python modules (optimized versions) ...
> fetchmailconf.py
> ...
> 
> Looks like it compiles and installs anyway. Maybe a little patch will
> remove that error. I'll have a look.

Adding
    2to3 -w fetchmailconf.py
    sed -e "s/^\t\t\t/                        /" -i fetchmailconf.py
    sed -e "s/^\t\t/                /" -i fetchmailconf.py
    sed -e "s/^\t/        /" -i fetchmailconf.py
removes all the errors and it compiles fine but the tree seds doesn't
look very 'pretty'. Simply replacing all tabs with eight blanks does
the job too but it destroys the visual apperance of that python script
(while not important to functionality).
Is there a better way to replace all tabs by spaces but only if they
occur at line beginning?

--
Thomas


-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to