[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#265281: lintian: warns for possible bashism when using sed



reassign 265281 python2.3-mysqldb
thanks

On Thu, Aug 12, 2004 at 03:56:04PM +0200, Jonas Meurer wrote:
> lintian reports a possible bashism in the maintainer scripts where i use
> sed to fetch the python version:
> 
> from pythonPV-mysqldb.postinst:
> 
> PV=`echo $PACKAGE | sed -n -e '/^python.*-/{s,python\([0-9][0-9.]*\)-.*,\1,p}'`
> 
> lintian reports:
> 
> W: python2.3-mysqldb: possible-bashism-in-maintainer-script postinst:8 
> 					'/{s,python\([0-9][0-9.]*\)-.*,\1,p}'

This is indeed a false positive. However, it's next-to-undoable to
really check for this unless we start to really parse scripts, rather
than run some regexes over it. In the majority of cases, the lintian
heuristic is right, but it fails unfortunately in the above case.

Please override this warning, lintian overrides are intended for
situations like this, your package does something uncommon that
accidently triggers a check, and it's really hard/impossible to have the
check be smart enough to understand this case.

--Jeroen

-- 
Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl



Reply to: