Added some print statements
This commit is contained in:
parent
645e8f2028
commit
61701770a8
@ -53,7 +53,7 @@ print ('Checking for updates')
|
|||||||
rangolio_location = settings.DEPLOY_CONFIG["RANGOLIO_LOCATION"]
|
rangolio_location = settings.DEPLOY_CONFIG["RANGOLIO_LOCATION"]
|
||||||
|
|
||||||
run_git_command('git_fetch_origin', rangolio_location)
|
run_git_command('git_fetch_origin', rangolio_location)
|
||||||
updates = run_git_command('git_diff', rangolio_location)
|
updates = run_git_command('git_diff', rangolio_location, ['origin/development'])
|
||||||
print (updates)
|
print (updates)
|
||||||
if updates['subprocess_output'] and updates['subprocess_returncode'] == 0:
|
if updates['subprocess_output'] and updates['subprocess_returncode'] == 0:
|
||||||
update_confirmation = draw_dialogue_box('Software Update', 'Would you like to update rangolio?', 'confirmation')
|
update_confirmation = draw_dialogue_box('Software Update', 'Would you like to update rangolio?', 'confirmation')
|
||||||
|
|||||||
@ -36,7 +36,7 @@ def run_git_command(operation, command_location, parameter=None):
|
|||||||
"git_add_url": ['git', 'remote', 'add', 'origin'],
|
"git_add_url": ['git', 'remote', 'add', 'origin'],
|
||||||
"git_push": ['git', 'push', '-u', 'origin', 'main'],
|
"git_push": ['git', 'push', '-u', 'origin', 'main'],
|
||||||
"git_clone": ['git', 'clone'],
|
"git_clone": ['git', 'clone'],
|
||||||
"git_diff": ['git', 'diff', 'origin/main']
|
"git_diff": ['git', 'diff']
|
||||||
}
|
}
|
||||||
return run_command(operation, command_location, git_commands, parameter)
|
return run_command(operation, command_location, git_commands, parameter)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user