[Notes] [Git][BuildGrid/buildgrid][finn/internal-tutorial-fix] Fixed minor issue in execute command.



Title: GitLab

finn pushed to branch finn/internal-tutorial-fix at BuildGrid / buildgrid

Commits:

1 changed file:

Changes:

  • buildgrid/_app/commands/cmd_execute.py
    ... ... @@ -164,11 +164,11 @@ def run_command(context, input_root, commands, output_file, output_directory):
    164 164
             for output_file_response in execute_response.result.output_files:
    
    165 165
                 path = os.path.join(output_directory, output_file_response.path)
    
    166 166
     
    
    167
    -            if not os.path.exists(os.path.dirname(path)):
    
    167
    +            if not os.path.exists(os.path.dirname(output_directory)):
    
    168 168
                     os.makedirs(os.path.dirname(path), exist_ok=True)
    
    169 169
     
    
    170 170
                 downloader.download_file(output_file_response.digest, path)
    
    171 171
     
    
    172
    -            if output_file_response.path in output_executeables:
    
    173
    -                st = os.stat(path)
    
    174
    -                os.chmod(path, st.st_mode | stat.S_IXUSR)
    172
    +    if output_file_response.path in output_executeables:
    
    173
    +        st = os.stat(path)
    
    174
    +        os.chmod(path, st.st_mode | stat.S_IXUSR)



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]