Pass code check.
This commit is contained in:
@@ -47,7 +47,7 @@ def moduleDeps( subtract=None, add=None ):
|
|||||||
info( '*** Loading ' + mod + '\n' )
|
info( '*** Loading ' + mod + '\n' )
|
||||||
modprobeOutput = modprobe( mod )
|
modprobeOutput = modprobe( mod )
|
||||||
if modprobeOutput:
|
if modprobeOutput:
|
||||||
error( 'Error inserting ' + mod +
|
error( 'Error inserting ' + mod +
|
||||||
' - is it installed and available via modprobe?\n' +
|
' - is it installed and available via modprobe?\n' +
|
||||||
'Error was: "%s"\n' % modprobeOutput )
|
'Error was: "%s"\n' % modprobeOutput )
|
||||||
if mod not in lsmod():
|
if mod not in lsmod():
|
||||||
@@ -62,6 +62,6 @@ def pathCheck( *args, **kwargs ):
|
|||||||
for arg in args:
|
for arg in args:
|
||||||
if not quietRun( 'which ' + arg ):
|
if not quietRun( 'which ' + arg ):
|
||||||
error( 'Cannot find required executable %s.\n' % arg +
|
error( 'Cannot find required executable %s.\n' % arg +
|
||||||
'Please make sure that %s is installed ' % moduleName +
|
'Please make sure that %s is installed ' % moduleName +
|
||||||
'and available in your $PATH:\n(%s)\n' % environ[ 'PATH' ] )
|
'and available in your $PATH:\n(%s)\n' % environ[ 'PATH' ] )
|
||||||
exit( 1 )
|
exit( 1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user