Пример #1
0
def check_perl_module(conf, module):
	"""
	Check if specified perlmodule is installed.

	Minimum version can be specified by specifying it after modulename
	like this:

	conf.check_perl_module("Some::Module 2.92")
	"""
	cmd = [conf.env['PERL'], '-e', 'use %s' % module]
	r = pproc.call(cmd, stdout=pproc.PIPE, stderr=pproc.PIPE) == 0
	conf.check_message("perl module %s" % module, "", r)
	return r
Пример #2
0
def check_perl_module(conf,module):
	cmd=[conf.env['PERL'],'-e','use %s'%module]
	r=pproc.call(cmd,stdout=pproc.PIPE,stderr=pproc.PIPE)==0
	conf.check_message("perl module %s"%module,"",r)
	return r