chg: Be a little more verbose

This commit is contained in:
Sayantan Santra 2023-08-14 17:19:21 -05:00
parent 14370fc56c
commit f165f112c7
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ from ReVancedBuilder.Cleanup import move_apps, err_exit
# Update the ReVanced tools, if needed # Update the ReVanced tools, if needed
def update_tools(appstate): def update_tools(appstate):
for item in ['revanced-cli', 'revanced-integrations', 'revanced-patches']: for item in ['revanced-cli', 'revanced-integrations', 'revanced-patches']:
print(f"Checking updates for {item}...")
*_, tool = filter(lambda x: x['repository'] == 'revanced/'+item, tools) # Get the last result *_, tool = filter(lambda x: x['repository'] == 'revanced/'+item, tools) # Get the last result
latest_ver = Version(tool['version']) latest_ver = Version(tool['version'])
@ -48,6 +49,7 @@ def update_tools(appstate):
# Update microG, if needed # Update microG, if needed
def update_microg(appstate): def update_microg(appstate):
print('Checking updates for Vanced microG...')
try: try:
data = req.get('https://api.github.com/repos/inotia00/VancedMicroG/releases/latest').json()['tag_name'] data = req.get('https://api.github.com/repos/inotia00/VancedMicroG/releases/latest').json()['tag_name']
latest_ver = Version(data) latest_ver = Version(data)