added missing cygwin.py changes
authorBarthaM@N3SIM1218.D03.arc.local
Thu, 15 May 2014 09:19:09 +0100
changeset 152028c3055147f
parent 151 d0f24f265331
child 153 ef0ace8dfc97
added missing cygwin.py changes
OpenSecurity/bin/cygwin.py
     1.1 --- a/OpenSecurity/bin/cygwin.py	Wed May 14 18:13:39 2014 +0100
     1.2 +++ b/OpenSecurity/bin/cygwin.py	Thu May 15 09:19:09 2014 +0100
     1.3 @@ -257,6 +257,13 @@
     1.4      def cygPath(path):
     1.5          cmd = 'cygpath -u \'' + path + '\''
     1.6          return Cygwin.bashExecute(cmd)[1].rstrip('\n')
     1.7 +    
     1.8 +    @staticmethod
     1.9 +    def checkResult(result):
    1.10 +        if result[0] != 0:
    1.11 +            logger.error('Command failed:' + ''.join(result[2]))
    1.12 +            raise OpenSecurityException('Command failed:' + ''.join(result[2]))
    1.13 +        return result
    1.14                  
    1.15  # start
    1.16  import os