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

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



On 13/10/2004 Jeroen van Wolffelaar wrote:
> 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.

so can you please provide a lintian override for python-mysqldb at
/usr/share/lintian/overrides/python2.2-mysqldb and python2.3-mysqldb,
with the following content:

python2.2-mysqldb: possible-bashism-in-maintainer-script

and for python2.3-mysqldb:
python2.3-mysqldb: possible-bashism-in-maintainer-script

should i reassign this bug to lintian?

bye
 jonas



Reply to: